Skip to content

Instantly share code, notes, and snippets.

@vznvzn
Created September 2, 2016 00:54
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/701f74ce6225755467615e0ca31bec0e to your computer and use it in GitHub Desktop.
Save vznvzn/701f74ce6225755467615e0ca31bec0e to your computer and use it in GitHub Desktop.
l = File.open("db.txt").readlines
l.each_with_index \
{
|x, i|
z = Kernel.eval(x)
puts([z['cm'], z['n'].to_s(2).length].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