Skip to content

Instantly share code, notes, and snippets.

View keller's full-sized avatar

Keller Davis keller

View GitHub Profile
@keller
keller / kate_birthday.coffee
Created January 28, 2012 04:27
Birthday Card for Kate
sing = (lyric, song) ->
lines = (song.line(i, lyric) for i in [0...song.length])
full_song = lines.join(",\n")+"!"
alert full_song
birthday =
length: 4
line: (line, lyric) ->
lyric + if (line == 2) then " birthday, dear #{@name}" else " birthday to you"
to: (@name) ->