Skip to content

Instantly share code, notes, and snippets.

@moski
Created May 20, 2012 16:57
Show Gist options
  • Save moski/2758758 to your computer and use it in GitHub Desktop.
Save moski/2758758 to your computer and use it in GitHub Desktop.
draw a heart in ruby
# Draw a heart in ruby
# blog post http://blog.moski.me/2012/05/drawing-hearts-in-ruby.html
#
puts [[2,2],9,9,7,5,3,1].map{|t|[*t].map{|n|"*"*n}.join(" ").center(9)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment