Home > Uncategorized > boredom

boredom

January 21st, 2009 Nick Leave a comment Go to comments

I’m bored, so I decided to make another post on my blog.

For those who know what the Ruby language is, run:

ruby -e "max=7;blk=lambda{|i|puts(('.'*(i*2-1)).center(max*2-1))};1.upto(max-1,&blk);max.downto(1, &blk)"

(Thanks to scott)

For those who dont, that outputs:

      .
     ...
    .....
   .......
  .........
 ...........
.............
 ...........
  .........
   .......
    .....
     ...
      .

Yes, I’m so bored i carefuly copy/pasted a diamond. Yay me.

ANYWAYS

it’s 1:14am, so I’m going to bed….since I’ve been up after 2am for the past 4 nights.

Categories: Uncategorized Tags:
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.