Skip to content

Instantly share code, notes, and snippets.

@darkoverlordofdata
Last active August 29, 2015 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkoverlordofdata/5c98360fb786ae0a6a08 to your computer and use it in GitHub Desktop.
Save darkoverlordofdata/5c98360fb786ae0a6a08 to your computer and use it in GitHub Desktop.
Spiced Rum-Script
#!/usr/bin/env coffee
#+--------------------------------------------------------------------+
#|
#| 'Tis file be part 'o Arg
#|
#| Arg! be free software; ye can copy, modify, 'n distribute
#| it under th' terms 'o th' MIT License
#|
#+--------------------------------------------------------------------+
http = require('http')
url = "http://postlikeapirate.com/AJAXtranslate.php?typing="
http.get url+escape(process.argv.slice(2).join(' ')), (res) ->
res.on 'data', (chunk) ->
console.log String(chunk)
.on 'error', (err) ->
console.log err
{
"name": "arg",
"version": "0.0.1",
"description": "Talk like a pirate",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"bin": {
"arg": "./bin/arg"
},
"author": "darkoverlordofdata",
"license": "MIT"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment