Skip to content

Instantly share code, notes, and snippets.

@robey
Created October 27, 2008 18:43
Show Gist options
  • Save robey/20160 to your computer and use it in GitHub Desktop.
Save robey/20160 to your computer and use it in GitHub Desktop.
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