- Swap Control and Caps Lock in System Preferences -> Keyboard -> Modifier Keys
- Google Chrome http://www.google.com/chrome/
- iTerm2 http://www.iterm2.com/
- Oh my zsh https://github.com/robbyrussell/oh-my-zsh/
- XCode (from the mac app store)
- XCode command line tools (run XCode, go to Preferences -> Downloads -> Command Line Tools)
- Homebrew https://github.com/mxcl/homebrew/wiki/installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# | |
# usat_import | |
# Created by Ryan Nagle, Chris Groskopf and Brian Boyer | |
# | |
# PostgreSQL importer for the pre-processed census files provided to IRE | |
# members by Paul Overberg and Anthony DeBarros from USA Today. | |
# | |
# To get the source files, join IRE (it's cheap!): | |
# http://www.ire.org/getcensus/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Our favorite new tool: http://tilemill.com/ | |
See the results here: http://media.apps.chicagotribune.com/census-2010/population-change/index.html | |
*/ | |
@sans-bold:"Arial Bold"; | |
#tracts[name = "Census Tract 9900"] { | |
polygon-opacity:0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv, os.path | |
import os | |
import httplib, base64 | |
import getpass | |
username = raw_input("Username:") | |
password = getpass.getpass("Password:") | |
subdomain = raw_input("Subdomain:") | |
project = raw_input("Project id:") | |
filename = raw_input("Tickets file:") |
http://www.newseum.org/todaysfrontpages/hr.asp?fpVname=PA_PI&ref_pge=gal&b_pge=1 http://www.newseum.org/todaysfrontpages/hr.asp?fpVname=AL_TN&ref_pge=gal&b_pge=1 http://www.newseum.org/todaysfrontpages/hr.asp?fpVname=WA_ST&ref_pge=gal&b_pge=1 http://www.newseum.org/todaysfrontpages/hr.asp?fpVname=NY_NYT&ref_pge=gal&b_pge=1 http://www.newseum.org/todaysfrontpages/hr.asp?fpVname=PA_PN&ref_pge=gal&b_pge=1 http://www.newseum.org/todaysfrontpages/hr.asp?fpVname=MA_BG&ref_pge=gal&b_pge=1 http://www.newseum.org/todaysfrontpages/hr.asp?fpVname=VA_POL&ref_pge=gal&b_pge=1 http://www.newseum.org/todaysfrontpages/hr.asp?fpVname=CO_DP&ref_pge=gal&b_pge=1 http://www.newseum.org/todaysfrontpages/hr.asp?fpVname=IL_CT&ref_pge=gal&b_pge=1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tell application "System Events" | |
set frontmostProcess to name of first item of (processes whose frontmost is true) | |
tell process frontmostProcess | |
tell window 1 | |
set oldSize to get size | |
-- change + to - for shrinking | |
-- change 100 to 5 for fine-tune mode | |
set newWidth to (item 1 of oldSize) + 100 | |
set size to {newWidth, item 2 of oldSize} | |
end tell |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// visit the remove connections page | |
// http://www.linkedin.com/connections?displayBreakConnections=&goback=%2Econ | |
//pull up your javascript console | |
// load jQuery | |
(function(){ | |
var newscript = document.createElement('script'); | |
newscript.type = 'text/javascript'; | |
newscript.async = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assumes your file is called mbox (which it is if you export from Mac Mail) | |
# writes to a file called mbox.csv | |
import mailbox | |
import csv | |
# motherfucking recursion, because email is damn weird. | |
# each payload can contain many other payloads, which can contain many *other* payloads | |
# this only exports the text/plain payload, the thing you read | |
def more_payloads(message): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Because https://www.medicare.gov/homehealthcompare/ does not provide any way to | |
# search for providers by their ratings, we've got to do this the hard way. | |
# Luckily, with csvkit the hard way isn't so hard. Get it here http://csvkit.readthedocs.io/ | |
# | |
# First, download the data from https://data.medicare.gov/data/home-health-compare | |
# | |
curl -o HHCompare_Revised_FlatFiles.zip "https://data.medicare.gov/views/bg9k-emty/files/36e8f3b0-0273-4b46-ba04-89f089678a84?content_type=application%2Fzip%3B%20charset%3Dbinary&filename=HHCompare_Revised_FlatFiles.zip" | |
# |