-
-
Save igrep/5428360 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
| #!/bin/env ruby | |
| # GistID: 5428360 | |
| require 'termcolor' | |
| $KCODE = 'u' if RUBY_VERSION < '1.9' | |
| $VERBOSE = true | |
| unless Array.method_defined? :sample | |
| class Array # reopen | |
| def sample # not complete implementation! | |
| self[ rand self.length ] | |
| end | |
| end | |
| end | |
| colored = ARGV.any? {|arg| arg.start_with? '--color' } | |
| message = %w[ | |
| ポッポー! | |
| ぽっぽー! | |
| やっほー! | |
| Yahoo! | |
| しゅっぽしゅっぽしゅっぽしゅっぽ・・・ | |
| 焦るなよ。これは"ls"じゃない、"sl"だ | |
| m9(^Д^)プギャーwwwwww | |
| ].sample | |
| colored_message = colored ? "<red>#{message}</red>".termcolor : message | |
| puts colored_message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
何か実行したら和むようなよい言葉があれば僕に教えてください。