Skip to content

Instantly share code, notes, and snippets.

@mrgordon
mrgordon / gist:3785241
Created September 26, 2012 00:14
hopefully this can work
websites = {}
@@words_of_interest = Marshal::load(File.read('models/tags.array'))
Website.order("id desc").limit(7495).each do |w|
websites[w.id] = w.url
end
rows = CSV.read("/tmp/answers_from_cat_modified_utf8.csv", :headers=>true)
output = CSV.open('output.csv', 'wb')
@mrgordon
mrgordon / job_structure.js
Created January 19, 2016 21:48
Job Structure With Heavily Nested Logic
{"contributors_browser"=>{},
"fb_loads_ok"=>
{:outbound_names=>
["at_personal_residence",
"event_occurs_in_future",
"event_occurs_in_past",
"has_specific_location",
"is_business",
"is_event",
"is_natural_feature",