Skip to content

Instantly share code, notes, and snippets.

@micahasmith
Created July 1, 2012 18:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save micahasmith/3029137 to your computer and use it in GitHub Desktop.
nodejs livescript webserver example
# the main example from nodejs.org
http = require 'http'
http.createServer (req,res)->
res.writeHead 200, \Content-Type : \text/plain
res.end 'Hello World\n'
.listen 1337 \127.0.0.1
console.log 'server running'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment