Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save norio/63829 to your computer and use it in GitHub Desktop.
Save norio/63829 to your computer and use it in GitHub Desktop.
def say(text)
system "say #{text}"
end
n = %w(zero ichi knee sun yon go loku shechi hachi koo ju)
say 'de-wa-- e-ma-ka-ra-- sun-no-buy-su-tow-- sun-gha-tsuku-- suu-g-no-tohki-da-que-- ahoo-knee-nari-masu'
(1..40).each do |i|
text = i <= 10 ? n[i] : i < 20 ? "ju #{n[i%10]}" : i%10 == 0 ? "#{n[i/10]} ju" : "#{n[i/10]} ju #{n[i%10]}"
text = "-v Hysterical #{text}" if i%3 == 0 or "#{i}".include?('3')
say text
end
say 'hey-- o-morou!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment