Skip to content

Instantly share code, notes, and snippets.

View mitchthorson's full-sized avatar

Mitchell Thorson mitchthorson

View GitHub Profile
@mitchthorson
mitchthorson / fipsToState.json
Created February 23, 2019 19:50 — forked from wavded/fipsToState.json
State FIPS JSON
{
"01": "Alabama",
"02": "Alaska",
"04": "Arizona",
"05": "Arkansas",
"06": "California",
"08": "Colorado",
"09": "Connecticut",
"10": "Delaware",
"11": "District of Columbia",
@mitchthorson
mitchthorson / static-web-sites.js
Last active January 20, 2017 18:56 — forked from pimlinders/static-web-sites.js
Copy existing and select static web sites.
/* Get site selection */
var sites = document.getElementById('id_sites').querySelectorAll('option');
selected_values = [];
for (var i=0; i<sites.length; i+=1) {
var site = sites[i];
if (site.selected === true) {
selected_values.push(site.value);
}
}
console.log('[' + selected_values.toString() + ']');