Skip to content

Instantly share code, notes, and snippets.

@hornbeck
hornbeck / gist:4449093
Last active December 10, 2015 14:38 — forked from anonymous/gist:4448895
setwd("R/")
setwd("NFL Play-by-Play Data 2002-2012/")
## read in the sweet, sweet NFL data
n <- read.csv("2012_nfl_pbp_data_reg_season.csv", header=TRUE)
## grab the no huddle plays
nh <- n[grep("Huddle", n$description),]
## table by offensive team and quarter
#!/bin/bash
sudo su -
# ubuntu
cat >/etc/apt/preferences <<EOF
Package: *
Pin: release a=lucid
Pin-Priority: -1
# mongo_template.rb
# remove unneeded defaults
run "rm public/index.html"
run "rm public/images/rails.png"
run "rm public/javascripts/controls.js"
run "rm public/javascripts/dragdrop.js"
run "rm public/javascripts/effects.js"
run "rm public/javascripts/prototype.js"
=== Epic Snow Leopard Upgrayyyyd Guide ===
Son, you’re now living in the land of 64-bit systems.
That means that some of your 32-bit shit is now broken.
Not all is lost.
== Fixing MySQL weirdness
export PATH="/usr/local/bin:/usr/local/sbin:/opt/local/bin:/usr/local/mysql-5.0.37-osx10.4-i686/bin:$PATH"