Skip to content

Instantly share code, notes, and snippets.

@daguar
daguar / gist:5640767
Created May 24, 2013 01:43
Zillow neighborhood data exploration in Ruby
require 'pry'
require 'rubillow'
Rubillow.configure do |config|
config.zwsid = ENV["ZILLOW_KEY"]
end
hoods = Rubillow::Neighborhood.region_children({ :state => 'IN', :city => 'South Bend', :childtype => 'neighborhood' })
# Hash method -- not using
#hood_region_ids = Hash.new
@daguar
daguar / gist:5368778
Last active September 18, 2018 03:39
An alternative approach to installing Drake on Mac OS X
# I bumped into some problems installing Drake ( https://github.com/Factual/drake ) on OSX, so here's what I did:
# 1. Follow the installation instructions here up through "Run Drake from the uberjar":
# https://github.com/Factual/drake/blob/251a22b27b5ded1fff522f39f06d3e06c77daf74/README.md
# (This is the specific README version I used.)
# 2. Move the 'drake' directory to Applications:
mv drake/ ~/Applications/
# 3. Install Drip ( https://github.com/flatland/drip ) for speedier load time.
@daguar
daguar / gist:3298859
Created August 8, 2012 21:17
Falling for Ruby: "Holy Crap!" Edition
=begin
Every day I use Ruby I see more and more why people become evangelists.
Take today: I was toying with evaluating different approaches to match two
data sources (API results and a giant local database), and I realized,
"wait! this is a job for yield!"
So I wrote a pleasant little module with a function that:
- Takes a block which attempts to match an API object to rows in the