Skip to content

Instantly share code, notes, and snippets.

@vznvzn
Created July 28, 2016 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vznvzn/851d00dd9f25193bbc24cde38b04a804 to your computer and use it in GitHub Desktop.
Save vznvzn/851d00dd9f25193bbc24cde38b04a804 to your computer and use it in GitHub Desktop.
l = File.open("db.txt").readlines
l.each_with_index \
{
|z, i|
x = Kernel.eval(z)
puts([i, i / 100, x['r']].join("\t"))
puts if ((i + 1) % 100 == 0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment