Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (15 sloc) 0.323 kB
#!/usr/bin/ruby
if ARGV[0] == '-w'
startx = ARGV[1].to_i
endx = ARGV[2].to_i
pad_size = endx.to_s.size
(startx..endx).to_a.each do |index|
puts sprintf("%0#{pad_size}d",index)
end
else
startx = ARGV[0].to_i
endx = ARGV[1].to_i
(startx..endx).to_a.each do |index|
puts sprintf("%d",index)
end
end
Jump to Line
Something went wrong with that request. Please try again.