Skip to content

Instantly share code, notes, and snippets.

@onigra
Created September 6, 2012 08:26
Show Gist options
  • Save onigra/3653032 to your computer and use it in GitHub Desktop.
Save onigra/3653032 to your computer and use it in GitHub Desktop.
Make Test Data
def writetext(filename, item, n, lines)
open(filename, "w") do |f|
lines.times do
f.write item.shift * n
f.write "\n"
end
end
end
a = ("a".."z").to_a
writetext(ARGV[0].to_s, a, ARGV[1].to_i, a.size)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment