Skip to content

Instantly share code, notes, and snippets.

View AbiruzzamanMolla's full-sized avatar
🏠
Working from home

Abiruzzaman Molla AbiruzzamanMolla

🏠
Working from home
View GitHub Profile
@AbiruzzamanMolla
AbiruzzamanMolla / php.json
Created February 27, 2024 09:50 — forked from thecodeholic/php.json
PHP/Laravel Live snippets for VSCode
{
"Create public function": {
"prefix": "pubf",
"body": [
"public function $1()",
"{",
"\t$2",
"}",
],
"description": "Create public function"
Import-Module -Name Terminal-Icons
#Import-Module oh-my-posh
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH/quick-term.omp.json" | Invoke-Expression
Import-Module gsudoModule
Import-Module posh-git
#Set-Alias Prompt gsudoPrompt
## behaviour of Tab key autocomplete
# Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
## From docs:
@AbiruzzamanMolla
AbiruzzamanMolla / 403-forbidden-console-theme-codepenchallenge.markdown
Created August 25, 2023 09:45
403 Forbidden Console Theme #CodePenChallenge
@AbiruzzamanMolla
AbiruzzamanMolla / NumberToWordBangla.php
Created April 11, 2023 15:32 — forked from kashohel/NumberToWordBangla.php
Convert from English number to word in Bangla | ইংরেজি নাম্বার থেকে বাংলা(কথায়) রুপান্তর
<?php
function num2bangla($number)
{
if (($number < 0) || ($number > 999999999))
{
return "নাম্বারটি অতিরিক্ত বড়";
} elseif (!is_numeric($number))
{
return "বৈধ নাম্বার নয়";
@AbiruzzamanMolla
AbiruzzamanMolla / Convert Numbers to Words - Bangladesh.php
Created April 11, 2023 15:31 — forked from techjewel/Convert Numbers to Words - Bangladesh.php
Convert Numbers to Words - for Bangladeshi counting system
<?php
/**
* Function: convert_number
*
* Description:
* Converts a given integer (in range [0..1T-1], inclusive) into
* alphabetical format ("one", "two", etc.)
*
* @int
*

My Request - 1

  • Table - done
  • Popup - done

Cart - Order list - 2

  • All page completed

Bank Check - 3

  • Done

Keybase proof

I hereby claim:

  • I am abiruzzamanmolla on github.
  • I am abiruzzamanmolla (https://keybase.io/abiruzzamanmolla) on keybase.
  • I have a public key whose fingerprint is 241D C5BB 55B8 11FA 8051 FDD1 D8F5 B1A1 DDC0 6AD9

To claim this, I am signing this object:

function uploadImage(object $image, string $path = 'uploads/', int $width = null, int $height = null){
if (!File::isDirectory($path)) {
File::makeDirectory($path, 0777, true, true);
}
$img = Image::make($image);
$img->resize($width, $height, function ($constraint) {
$constraint->aspectRatio();
});
$path = $path . Str::random(40) . '.' . $image->extension();
$img->save($path);
@AbiruzzamanMolla
AbiruzzamanMolla / fdfdfd
Last active December 24, 2022 15:27
uuid laraevl
use Ramsey\Uuid\Uuid;
class Foo extends Model
{
protected $primaryKey = 'uuid';
protected $keyType = 'string';
public $incrementing = false;
# Alias Custom
alias pa="php artisan"
alias pas="php artisan serve"
alias pamfs="php artisan migrate:fresh --seed"
alias pao="pa optimize:clear && pa cache:clear && pa config:clear && pa config:cache && pa optimize && pa route:clear && pa route:cache && pa view:clear && pa view:cache"
alias clr="clear"
alias pamf="php artisan migrate:fresh"
alias paoc="php artisan optimize:clear"
alias pacc="php artisan config:clear"