Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View dgholz's full-sized avatar

Daniel George Holz dgholz

  • Edinburgh
View GitHub Profile
@dgholz
dgholz / gist:8313960
Last active January 2, 2016 13:59 — forked from anonymous/gist:8308733
def prompt(text=[])
text = [text].flatten
text.unshift('>').push(nil) # for trailing space
print text.join(' ')
return gets
end
def counter(maxcount)
numbers = []
for i in maxcount