Skip to content

Instantly share code, notes, and snippets.

@geta6
Forked from itochan/saiko.rb
Created November 15, 2013 07:53
Show Gist options
  • Save geta6/7480697 to your computer and use it in GitHub Desktop.
Save geta6/7480697 to your computer and use it in GitHub Desktop.
r = (require 'readline').createInterface
input: process.stdin
output: process.stdout
r.question '最高ですか? (y/n)', (res) ->
console.log '最高!!' if /^y$/i.test res.trim()
r.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment