Skip to content

Instantly share code, notes, and snippets.

@ScottPesetsky
Created May 23, 2014 03:06
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 ScottPesetsky/5ae7e72cb1968af4aa81 to your computer and use it in GitHub Desktop.
Save ScottPesetsky/5ae7e72cb1968af4aa81 to your computer and use it in GitHub Desktop.
var URL = process.argv[0]
//console.log(URL)
var http = require('http')
http.get("/usr/local/Cellar/node/0.10.26/bin/node"), function callback (response) {
response.on("error",function (error) {throw error})
response.on("data", function (data) {
for (var i = data.length - 1; i >= 0; i--) {
console.log(data[i].setEncoding(utf8));
};
})};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment