Skip to content

Instantly share code, notes, and snippets.

@rubyworks
Created February 23, 2010 14:57
Show Gist options
  • Save rubyworks/312260 to your computer and use it in GitHub Desktop.
Save rubyworks/312260 to your computer and use it in GitHub Desktop.
Oneliner - Fractal Tree
n=32;l="A";n.times{|y|print" "*(n-1-y),(0..y).map{|x|~y&x>0?" .":" #{l}"},$/}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment