Last active
August 29, 2015 14:20
-
-
Save loganhasson/830e9c59bf9f409c4e82 to your computer and use it in GitHub Desktop.
Revisions
-
loganhasson revised this gist
May 7, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,3 @@ def metro_card(init) (5.50..60.00).step(0.05).map {|v| v.round(2) if (init + (v*1.11).round(2)) % 2.75 == 0}.compact end -
loganhasson created this gist
May 7, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ def metro_card(init) (5.50..60.00).step(0.05).map {|v| v if (init + (v*1.11).round(2)) % 2.75 == 0}.compact end