Created
April 11, 2010 11:19
-
-
Save drnic/362660 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sys: require('sys') | |
| puts "Hello World" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sys: require('sys') | |
| http: require('http') | |
| http.createServer( (request, response) -> | |
| response.sendHeader 200, {"Content-Type": "text/html"} | |
| response.write "Hello World!" | |
| response.close() | |
| ).listen(8080) | |
| puts "Server running on http://localhost:8080/" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment