Skip to content

Instantly share code, notes, and snippets.

View cosmocatalano's full-sized avatar
🤡
all day every day

Cosmo Catalano cosmocatalano

🤡
all day every day
View GitHub Profile
1) Open repo in tower.
2) Right-click on remotes/origin in left pane.
3) Select `Edit Connection Settings`.
@blois
blois / gist:8926615
Created February 10, 2014 23:49
Document.currentScript workaround
function getCurrentScript(callback) {
if (document.currentScript) {
callback(document.currentScript);
return;
}
var scripts = document.scripts;
function onLoad() {
for (var i = 0; i < scripts.length; ++i) {
scripts[i].removeEventListener('load', onLoad, false);
}
@vxnick
vxnick / gist:380904
Created April 27, 2010 15:52
Array of country codes (ISO 3166-1 alpha-2) and corresponding names
<?php
$countries = array
(
'AF' => 'Afghanistan',
'AX' => 'Aland Islands',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',