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",

Keybase proof

I hereby claim:

  • I am mitchthorson on github.
  • I am mthorson (https://keybase.io/mthorson) on keybase.
  • I have a public key ASC_amVLFBKnqLVIbjPCBm6XQWc8TB7mVHa1uuaD8kkkFAo

To claim this, I am signing this object:

@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() + ']');

#NICAR 2016

##Interactive News Spreadsheet

http://depot.thethrust.net/

  • Creating tools to take you 80-90% of the way there, frees you up to create the bespoke content that is hard, rather than the bespoke content that is easy.
  • Making code sharable is hard. Requires and extra layer of work to scrub it. Is it worth it?
  • Open sourcing can force you to be honest with your own development process.
  • data is available in interactive by default…people can cite your work already. why not make it clearly available in a public way.
Name Artist Album Track Number
Farewell Jingle Bells Dave Brubeck A Dave Brubeck Christmas 13
Homecoming Jingle Bells Dave Brubeck A Dave Brubeck Christmas 1
Shots (early session version) Frog Eyes The Golden River 23
#!*@ You Tonight (feat. R. Kelly) The Notorious B.I.G. Life After Death (Deluxe Version) 5
#!*@ Me (Interlude) The Notorious B.I.G. Ready To Die The Remaster 8
#1 Animal Collective Strawberry Jam 6
#1 Hit Song Minutemen Double Nickels On The Dime 6
#CAKE Shabazz Palaces Lese Majesty 12
' Cello Song Nick Drake Five Leaves Left 6
@mitchthorson
mitchthorson / osxenvironment.markdown
Last active August 29, 2015 14:16
Things I use on OSX

#Basic OSX setup and tools for development

These are the tools I use to be productive while writing code on a Mac. I wanted to write them down in case I need to set up a computer again from scratch, or in case it could be helpful to share with anyone else.

##Command line tools

@mitchthorson
mitchthorson / Gruntfile.js
Created July 16, 2014 21:32
Sample Gruntfile
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
sourcemap: true,
style: 'compressed'
@mitchthorson
mitchthorson / .vimrc
Last active August 29, 2015 14:02
Vim configuration
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
Bundle 'chriskempson/base16-vim'
@mitchthorson
mitchthorson / Preferences.sublime-settings.json
Last active November 28, 2015 01:21
My Sublime Text Preference File
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_with_fields": true,
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Theme - Flatland/Flatland Monokai.tmTheme",
"detect_indentation": true,
"fade_fold_buttons": true,
"folder_exclude_patterns":