Skip to content

Instantly share code, notes, and snippets.

View jcody's full-sized avatar
👋

Joey Cody jcody

👋
View GitHub Profile
@jcody
jcody / qt.rb
Last active December 27, 2015 01:19
QT patch for Haswell macbook pro's
require 'formula'
class Qt < Formula
homepage 'http://qt-project.org/'
url 'http://download.qt-project.org/official_releases/qt/4.8/4.8.5/qt-everywhere-opensource-src-4.8.5.tar.gz'
sha1 '745f9ebf091696c0d5403ce691dc28c039d77b9e'
bottle do
revision 2
sha1 'b361f521d413409c0e4397f2fc597c965ca44e56' => :mountain_lion
@jcody
jcody / sfcrime.R
Last active December 16, 2015 21:28
Visualization of SF Crime over last 3 months
# Visualization of SF Crime over last 3 months
# Data courtesy of https://data.sfgov.org/Public-Safety/SFPD-Incidents-Previous-Three-Months/tmnf-yvry
# Joey Cody - 5/1/13
library(googleVis)
sfcrime <- read.csv("~/Desktop/sfcrime.csv")
attach(sfcrime)
dcount <- as.data.frame(table(DayOfWeek))
tcount <- as.data.frame(table(Category))
@jcody
jcody / christmas.rb
Created December 6, 2012 10:54
Reddit word frequency counter of titles submitted to the /r/christmas subreddit. For ACM@UCSB
require 'httparty'
require 'rubygems'
require 'json'
# Create word frequency hash
freqs = Hash.new(0)
reddit_api_url = "http://www.reddit.com/r/christmas/new.json?sort=new&limit=100"
resp = HTTParty.get(reddit_api_url)
data = JSON.parse(resp.body)
@jcody
jcody / article.yml
Created July 3, 2012 18:18
Article DB entry
- !ruby/object:Article
attributes:
id: 8
updated: 2012-04-30 21:58:00.000000000 Z
title: How do I register a new trailer?
content: ! "<div class=\"quick_top\"><h2>If you purchased the trailer on Oahu</h2>\r\n<ul><li>Fill
out the Application for Registration of Trailer (Form CS-L MVR 14).</li>\r\n<li>Have
the selling dealer sign the back of the form.</li>\r\n<li>If the vehicle weighs
less than 10,000 pounds, obtain a Hawaii Vehicle Inspection Certificate.</li>\r\n<li>If
the vehicle weighs more than 10,000 pounds, obtain a State Department of Transportation