Created
February 23, 2011 14:32
-
-
Save nefo-mi/840486 to your computer and use it in GitHub Desktop.
7進数5桁の全テストデータを作るワンライナー
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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