Skip to content

Instantly share code, notes, and snippets.

View sgarbesi's full-sized avatar

Salvatore Garbesi sgarbesi

View GitHub Profile
@sgarbesi
sgarbesi / iso_3116_2.js
Created December 8, 2013 15:05
ISO 3166-2 to MySQL from iso.org
// Visit http://www.iso.org/iso/home/standards/country_codes/updates_on_iso_3166.htm?show=tab3
// Inject jQuery
// Open console and drop the following code in:
var countries = [];
$('.sortable > tbody > tr').each(function() {
var inside = [];
$('td:eq(0),td:eq(1)', this).each(function() {
@sgarbesi
sgarbesi / iso_639_2.js
Created December 14, 2013 17:42
ISO 639-2 to MySQL from loc.gov
// Visit http://www.loc.gov/standards/iso639-2/php/code_list.php
// Inject jQuery
// Open console and drop the following code in:
var countries = [];
$('table:eq(1) > tbody > tr').each(function() {
var inside = [];
$('td:eq(0),td:eq(1),td:eq(2)', this).each(function() {