Last active
October 20, 2020 12:29
-
-
Save arkku/4939f10841379820c57e6796472f54ea to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| puts "🕳" | |
| bunny = [ '(\_/)', '( •_•)', '/ >' ] | |
| count = (ARGV[0] || 17).to_i | |
| 0.upto(count - 1) do |i| | |
| space='' | |
| 1.upto(i * bunny.last.length) { |j| space="#{space}#{j.odd? ? '.' : ' '}" } | |
| print bunny.join("\n#{space}") | |
| end | |
| puts "🕳" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.