-
-
Save gotomypc/3968031 to your computer and use it in GitHub Desktop.
Coffeescript Node.js example
This file contains 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
require.paths.unshift("/Users/johnw/js/node_modules") | |
require("./underscore") | |
sys: require("sys") | |
rest: require("restler") | |
rest.get('http://github.com/api/v2/json/repos/show/mrjjwright').addListener('complete', | |
((data) -> | |
repositories: JSON.parse(data).repositories | |
for repository in repositories | |
sys.puts(repository.name) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment