Skip to content

Instantly share code, notes, and snippets.

View terranc's full-sized avatar

Terran terranc

View GitHub Profile
@terranc
terranc / CountryCodes.json
Created February 17, 2023 14:13 — forked from anubhavshrimal/CountryCodes.json
Country and Dial or Phone codes in JSON format
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"
@terranc
terranc / uri.js
Last active June 5, 2017 20:07 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
#!/bin/sh
# see https://help.github.com/articles/changing-author-info/
git filter-branch --env-filter '
OLD_EMAIL=(
"your-old-email@example.com"
"your-git-email@users.noreply.github.com"
)
CORRECT_NAME="Your Correct Name"