Skip to content

Instantly share code, notes, and snippets.

@ravelll
Created September 12, 2016 23:06
Show Gist options
  • Save ravelll/c4a0f129cb11e6fe4165568a0f3b0aa1 to your computer and use it in GitHub Desktop.
Save ravelll/c4a0f129cb11e6fe4165568a0f3b0aa1 to your computer and use it in GitHub Desktop.
10.upto(63) do |i|
10.upto(63) do |k|
IO.write(
i.to_s + k.to_s + ".jpg",
open('./hoge.jpg').read.force_encoding('ascii-8bit').gsub(i.to_s, k.to_s)
)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment