Skip to content

Instantly share code, notes, and snippets.

View idris's full-sized avatar

Idris Mokhtarzada idris

View GitHub Profile
@idris
idris / gist:8306743
Last active January 2, 2016 12:59
Phone Number Country Code Dropdown
<select size="1" name="phone_number_country_code">
<option value="1" selected="">United States and Canada (+ 001)</option>
<option value="93">Afghanistan (+ 093)</option>
<option value="355">Albania (+ 355)</option>
<option value="213">Algeria (+ 213)</option>
<option value="684">American Samoa (+ 684)</option>
<option value="376">Andorra (+ 376)</option>
<option value="244">Angola (+ 244)</option>
<option value="1">Anguilla (+ 001)</option>
<option value="672">Antarctica (+ 672)</option>
@idris
idris / github.sh
Created January 20, 2011 22:23
command-line utility that opens a browser to the given file/directory in GitHub.
#!/bin/bash
FILE=$1
if [ -d $FILE ]; then
DIR=$FILE
else
DIR=`dirname $FILE`
fi
function parse_git_branch {
Verifying my Blockstack ID is secured with the address 1GVKoZ6YR9qjeFGqxKqLmBCaydvtKYbr4h https://explorer.blockstack.org/address/1GVKoZ6YR9qjeFGqxKqLmBCaydvtKYbr4h
@idris
idris / lesswatch.js
Created July 13, 2011 14:37
lesswatch command that can be run to watch a directory and compile .less files to .css files when they are modified.
#!/usr/bin/env node
var fs = require('fs');
var exec = require('child_process').exec;
/*
* lesswatch usage:
*
* `lesswatch` to watch the current directory