Skip to content

Instantly share code, notes, and snippets.

@mjurincic
Last active August 29, 2015 14:20
Show Gist options
  • Save mjurincic/773b1179b1f7ab1f7a99 to your computer and use it in GitHub Desktop.
Save mjurincic/773b1179b1f7ab1f7a99 to your computer and use it in GitHub Desktop.
Node presentaion examples
var http = require('http');
var fs = require('fs');
http.createServer(function(request, response){
response.writeHead(200);
fs.readFile('index.html', function(err, contents){
response.write(contents);
response.end();
});
}).listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment