Created
October 27, 2008 18:43
-
-
Save robey/20160 to your computer and use it in GitHub Desktop.
This file contains 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 characters
File.open("test/fixtures/ketama_results", "r").each_line { |x| a = x.split(" "); puts " { \"#{a[0].gsub('\\', '\\\\\\')}\", #{a[1]}UL, #{a[2]}UL, \"#{a[3].split(':')[0]}\" }," } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment