Skip to content

Instantly share code, notes, and snippets.

@camilleroux
Created December 24, 2010 18:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save camilleroux/754428 to your computer and use it in GitHub Desktop.
Save camilleroux/754428 to your computer and use it in GitHub Desktop.
A Ruby code to draw a Christmas Tree in less than 140 character
((1..20).to_a+[6]*4).each{|i|puts ('#'*i*2).center(80)};puts;puts 'Merry Christmas'.center(80)
@mxwsxr
Copy link

mxwsxr commented Dec 18, 2017

this is highly confusing, you dont have any explanations and the "center" method is undefined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment