Skip to content

Instantly share code, notes, and snippets.

@nefo-mi
Created February 23, 2011 14:32
Show Gist options
  • Save nefo-mi/840486 to your computer and use it in GitHub Desktop.
Save nefo-mi/840486 to your computer and use it in GitHub Desktop.
7進数5桁の全テストデータを作るワンライナー
ruby -e "(7**5).times {|r| puts format('%05d', r.to_s(7)).unpack('aaaaa').join(' ')}"
0 0 0 0 0
0 0 0 0 1
0 0 0 0 2
0 0 0 0 3
0 0 0 0 4
0 0 0 0 5
0 0 0 0 6
0 0 0 1 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment