Skip to content

Instantly share code, notes, and snippets.

View devzakir's full-sized avatar
🏠
Building @JuggleHire for busy recruiters

Zakir Hossen devzakir

🏠
Building @JuggleHire for busy recruiters
View GitHub Profile
@devzakir
devzakir / languages.json
Created August 25, 2021 10:05
ISO Language Codes (639-1 and 693-2) and IETF Language Types
[
{
"English": "Afar",
"French": "afar",
"alpha2": "aa",
"alpha3-b": "aar",
"alpha3-t": null
},
{
"English": "Abkhazian",
{
"ab":{
"name":"Abkhaz",
"nativeName":"аҧсуа"
},
"aa":{
"name":"Afar",
"nativeName":"Afaraf"
},
"af":{
@devzakir
devzakir / languages.json
Created August 25, 2021 10:03
ISO Language Codes (639-1 and 693-2) and IETF Language Types
[
{
"English": "Afar",
"alpha2": "aa",
"alpha3-b": "aar"
},
{
"English": "Abkhazian",
"alpha2": "ab",
"alpha3-b": "abk"
@devzakir
devzakir / world.json
Created August 25, 2021 07:45
List of world countries and their associated alpha-2, alpha-3 and numeric country codes as defined by the ISO 3166 standard
[{"id":4,"name":"Afghanistan","alpha2":"af","alpha3":"afg"},
{"id":248,"name":"Åland Islands","alpha2":"ax","alpha3":"ala"},
{"id":8,"name":"Albania","alpha2":"al","alpha3":"alb"},
{"id":12,"name":"Algeria","alpha2":"dz","alpha3":"dza"},
{"id":16,"name":"American Samoa","alpha2":"as","alpha3":"asm"},
{"id":20,"name":"Andorra","alpha2":"ad","alpha3":"and"},
{"id":24,"name":"Angola","alpha2":"ao","alpha3":"ago"},
{"id":660,"name":"Anguilla","alpha2":"ai","alpha3":"aia"},
{"id":10,"name":"Antarctica","alpha2":"aq","alpha3":"ata"},
{"id":28,"name":"Antigua and Barbuda","alpha2":"ag","alpha3":"atg"},
@devzakir
devzakir / country-list.json
Created August 25, 2021 07:44
ISO 3166 alpha-2 Country List
[
{
"code": "US",
"name": "United States of America"
},
{
"code": "AD",
"name": "Andorra"
},
{
@devzakir
devzakir / countries_codes_and_coordinates.csv
Created August 25, 2021 07:42 — forked from tadast/countries_codes_and_coordinates.csv
Countries with their (ISO 3166-1) Alpha-2 code, Alpha-3 code, UN M49, average latitude and longitude coordinates
Country Alpha-2 code Alpha-3 code Numeric code Latitude (average) Longitude (average)
Afghanistan AF AFG 4 33 65
Albania AL ALB 8 41 20
Algeria DZ DZA 12 28 3
American Samoa AS ASM 16 -14.3333 -170
Andorra AD AND 20 42.5 1.6
Angola AO AGO 24 -12.5 18.5
Anguilla AI AIA 660 18.25 -63.1667
Antarctica AQ ATA 10 -90 0
Antigua and Barbuda AG ATG 28 17.05 -61.8
@devzakir
devzakir / gh-deploy-clone.sh
Created August 16, 2021 05:44 — forked from blvz/gh-deploy-clone.sh
Creates a deploy key and clones the repository.
#!/usr/bin/env bash
read -r -d '' usage << EOM
Usage:
gh-deploy-clone user/repo [ENVIRONMENT]
EOM
[ -z "$1" ] && echo && echo "$usage" && echo && exit 1

If .DS_Store was never added to your git repository, simply add it to your .gitignore file.

If you don't have one, create a file called

.gitignore

In your the root directory of your app and simply write

@devzakir
devzakir / AuthController.php
Created April 13, 2021 08:18
Laravel API Login with Validation
<?php
/**
* Validate the user login request.
*
* @param \Illuminate\Http\Request $request
* @return void
*
* @throws \Illuminate\Validation\ValidationException
*/
@devzakir
devzakir / file.php
Created March 31, 2021 08:07
Show Laravel Email Notification In the Browser
Route::get('preview', function () {
$message = (new \App\Notifications\OrderPlaced(\App\Models\Order::first(), \App\Models\User::first()))->toMail('test@test.com');
return $message->render();
});