Skip to content

Instantly share code, notes, and snippets.

View rossmeissl's full-sized avatar

Andy Rossmeissl rossmeissl

View GitHub Profile

Keybase proof

I hereby claim:

  • I am rossmeissl on github.
  • I am rossmeissl (https://keybase.io/rossmeissl) on keybase.
  • I have a public key whose fingerprint is 620F 5BC1 9255 10BE 786A 6457 3AFD B179 1AF7 1CD0

To claim this, I am signing this object:

@rossmeissl
rossmeissl / manifest-full.txt
Created July 15, 2014 15:07
Census block group data URLs for all states
ftp://ftp2.census.gov/geo/tiger/TIGER2013/BG/tl_2013_01_bg.zip
ftp://ftp2.census.gov/geo/tiger/TIGER2013/BG/tl_2013_02_bg.zip
ftp://ftp2.census.gov/geo/tiger/TIGER2013/BG/tl_2013_04_bg.zip
ftp://ftp2.census.gov/geo/tiger/TIGER2013/BG/tl_2013_05_bg.zip
ftp://ftp2.census.gov/geo/tiger/TIGER2013/BG/tl_2013_06_bg.zip
ftp://ftp2.census.gov/geo/tiger/TIGER2013/BG/tl_2013_08_bg.zip
ftp://ftp2.census.gov/geo/tiger/TIGER2013/BG/tl_2013_09_bg.zip
ftp://ftp2.census.gov/geo/tiger/TIGER2013/BG/tl_2013_10_bg.zip
ftp://ftp2.census.gov/geo/tiger/TIGER2013/BG/tl_2013_11_bg.zip
ftp://ftp2.census.gov/geo/tiger/TIGER2013/BG/tl_2013_12_bg.zip
@rossmeissl
rossmeissl / manifest-sample.txt
Last active August 29, 2015 14:04
Census block groups data URLs (just California)
ftp://ftp2.census.gov/geo/tiger/TIGER2013/BG/tl_2013_06_bg.zip
@rossmeissl
rossmeissl / manifest.json
Last active August 29, 2015 14:04
NREL solar data
{
"ghi": "http://www.nrel.gov/gis/data/GIS_Data_Technology_Specific/United_States/Solar/High_Resolution/us9809_ghi_updated.zip",
"dni": "http://www.nrel.gov/gis/data/GIS_Data_Technology_Specific/United_States/Solar/High_Resolution/us9809_dni_updated.zip"
}
@rossmeissl
rossmeissl / manifest.csv
Last active August 29, 2015 14:04
ACS states
state fips full
ak 2 Alaska
al 1 Alabama
ar 5 Arkansas
az 4 Arizona
ca 6 California
co 8 Colorado
ct 9 Connecticut
dc 11 DistrictofColumbia
de 10 Delaware
@rossmeissl
rossmeissl / manifest-sample.csv
Last active August 29, 2015 14:04
ACS states (sample)
state fips full
ak 2 Alaska
ca 6 California
@rossmeissl
rossmeissl / manifest-sample.txt
Created July 30, 2014 04:53
Census block groups (MA only)
ftp://ftp2.census.gov/geo/tiger/TIGER2013/BG/tl_2013_25_bg.zip
@rossmeissl
rossmeissl / manifest-sample.csv
Created July 30, 2014 04:55
ACS states (MA only)
state fips full
ma 25 Massachusetts
@rossmeissl
rossmeissl / automobile_options.rb
Created June 10, 2010 19:00
Trying to figure out how to disaggregate a model so that its important bits can be open-sourced
# This is what we have in our app now:
class Automobile < ActiveRecord::Base
include Leap # provides #decide classmethod
decide :emission do
# important stuff described in DSL
end
# lots of other boring stuff
TRAVEL_DISTANCE_INSIDE_ZIP_CODE = 7.89 #km
TRAVEL_DOGLEG_FACTOR = 1.259
TRAVEL_EMITTERS = {
:flight => 100..25000, # circumference of the earth
:rail_trip => 0..2500, # nyc -> la
:automobile => 0..2500,
:bus_trip => 0..2500
}
TRAVEL_WIZARD_CHARACTERISTIC_ORDER = {
:flight => [:origin_airport, :destination_airport, :emplanements_per_trip, :load_factor],