Skip to content

Instantly share code, notes, and snippets.

Avatar

Salvatore Garbesi sgarbesi

View GitHub Profile
@sgarbesi
sgarbesi / iso_639_2.js
Created Dec 14, 2013
ISO 639-2 to MySQL from loc.gov
View iso_639_2.js
// 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() {
@sgarbesi
sgarbesi / iso_3116_2.js
Created Dec 8, 2013
ISO 3166-2 to MySQL from iso.org
View iso_3116_2.js
// 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() {