Skip to content

Instantly share code, notes, and snippets.

@joelmoss
Forked from hugs/LICENSE
Created February 15, 2010 08:54
Show Gist options
  • Save joelmoss/304495 to your computer and use it in GitHub Desktop.
Save joelmoss/304495 to your computer and use it in GitHub Desktop.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2010 Jason R. Huggins
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
# Install Node and CoffeeScript:
# Node : http://github.com/ry/node
# CoffeeScript : http://github.com/jashkenas/coffee-script
#
# In a terminal window:
# $ cd coffee-script
# $ ./bin/node_coffee -r webserver.coffee
#
# Tested with Mac OS X 10.5.8, Node 0.1.26, CoffeeScript 0.5.0
sys: require "sys"
http: require "http"
http.createServer( (req, res) ->
res.sendHeader 200, {"Content-Type": "text/plain"}
res.sendBody "Hello, World!"
res.finish()
).listen 8000
sys.puts "Server running at http://127.0.0.1:8000/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment