Skip to content

Instantly share code, notes, and snippets.

@ruedap
Created June 29, 2011 15:33
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 ruedap/1054102 to your computer and use it in GitHub Desktop.
Save ruedap/1054102 to your computer and use it in GitHub Desktop.
express = require("express")
app = express.createServer()
hoge = Math.floor(Math.random()*100) unless hoge
app.get "/", (req, res) ->
res.send "#{hoge}"
port = process.env.PORT or 3000
app.listen port, ->
console.log "Listening on " + port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment