A Pen by Leena Lavanya on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function num2bangla($number) | |
{ | |
if (($number < 0) || ($number > 999999999)) | |
{ | |
return "নাম্বারটি অতিরিক্ত বড়"; | |
} elseif (!is_numeric($number)) | |
{ | |
return "বৈধ নাম্বার নয়"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Function: convert_number | |
* | |
* Description: | |
* Converts a given integer (in range [0..1T-1], inclusive) into | |
* alphabetical format ("one", "two", etc.) | |
* | |
* @int | |
* |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Ramsey\Uuid\Uuid; | |
class Foo extends Model | |
{ | |
protected $primaryKey = 'uuid'; | |
protected $keyType = 'string'; | |
public $incrementing = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$countries = array("Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Island |