Skip to content

Instantly share code, notes, and snippets.

function resetFlags(e) {
dragPan.enable();
dragged = false;
overFeature = null;
overReportOrSite = false;
overSiteId = -1;
mouseDown = false;
mouseDownFeature = false;
mouseDownSite = false;
mouseDownReport = false;
./stack install hprotoc
~/.local/bin/hprotoc ./gtfs-realtime.proto
The proto file needed to be hacked in 4 ways:
* comment out/delete the 'syntax = "proto2";' line.
* insert line breaks before end curly braces:
extensions 1000 to 1999;
}
@newmana
newmana / gist:9749396
Last active August 29, 2015 13:57
Hash uses eql? not ==
2.1.1 :001 > {2 => "foo", 2.0 => "bar"}
=> {2=>"foo", 2.0=>"bar"}
2.1.1 :002 > 2 == 2.0
=> true
2.1.1 :003 > 2.eql?(2.0)
=> false