Skip to content

Instantly share code, notes, and snippets.

View farleyknight's full-sized avatar
🎯
Focusing

Farley Knight farleyknight

🎯
Focusing
View GitHub Profile
def index
@carriers = Carrier.all.sort_by(&:name)
@lines = Array.new
@carriers.each do |c|
c.sw_profiles.each do |p|
@lines.push(prepend_hash_keys("carrier", c.attributes).merge(prepend_hash_keys("sw_profile", p.attributes)))
end
end
end
@farleyknight
farleyknight / .block
Last active May 8, 2018 03:09 — forked from mbostock/.block
Google Maps + D3
license: gpl-3.0