Skip to content

Instantly share code, notes, and snippets.

@mrjjwright
Created February 8, 2010 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mrjjwright/298473 to your computer and use it in GitHub Desktop.
Save mrjjwright/298473 to your computer and use it in GitHub Desktop.
Coffeescript Node.js example
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