Last active
July 26, 2016 18:31
-
-
Save qrohlf/7045823 to your computer and use it in GitHub Desktop.
Ruby Hello World
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
= 1 | |
= + | |
= * + | |
= * | |
= | |
[ *( + )+ , | |
= * + , | |
= * + - , | |
, | |
= + , | |
* + + , | |
* - * + + , | |
, | |
+ + , | |
, | |
* , + + , | |
] | |
puts .map(&:chr).join |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice! Here's a readability trick:
ruby -p -e '$_.gsub!(/ +/," ").gsub!(/\u00a0+/){|m| "v#{m.size}"}' < helloworld
prints