Skip to content

Instantly share code, notes, and snippets.

  • Save takuma104/64333 to your computer and use it in GitHub Desktop.
Save takuma104/64333 to your computer and use it in GitHub Desktop.
def say(text)
system "say #{text}"
end
n = %w(zero ichi knee sun yon go lowcoo shechi hachi kyu ju)
say 'de-wa-- e-ma-ka-ra-- sun-no-buy-su-tow-- sun-gha-tscoo-- suu-jee-no-tohki-da-que-- ahhoo-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-- omohro!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment