Where's My LeBaron?

This is my blog about programming, math, computer science, and whatever else I'm finding interesting at the moment

Monday, March 29, 2010

Hello, World!\n

 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 
#!/usr/bin/ruby
ABOUT=<<THIS_BLOG
I have spent a lot of time reading blog posts online, and I've come to
believe that much of that time would be better spent reading and
writing actual code.
 
This blog is a place for me to post interesting code snippets that I
write or find so that I can refer back to them or others can find them
too. I don't intend to make traditional prose posts, just entertaining
code samples.
 
Source code from all of my posts can be found on github
http://github.com/rhburrows/code-blog
And will be posted to
http://rhburrows.com
 
Enjoy!
 
P.S. I know this post is almost prose and is kind of cheating, but I
felt some sort of introduction was needed, and at least I wrapped it
in a Quine. Without all this blather in the middle its actually pretty
interesting code.
 
THIS_BLOG
P=<<'E'
#!/usr/bin/ruby
ABOUT=<<THIS_BLOG
%sTHIS_BLOG
P=<<'E'
%s%s
print P %% [ABOUT, P, "E"]
E
print P % [ABOUT, P, "E"]

Posted via web from Where's My LeBaron?