Skip to content

Instantly share code, notes, and snippets.

<html><head></head><body></body></html>
@devandy
devandy / gist:3509606
Created August 29, 2012 10:03
nodejitsu deploy error
info: Welcome to Nodejitsu devandy
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing your application dependencies in app.coffee
warn: Local version appears to be old
warn: Your package.json version will be incremented for you automatically
warn: About to write /home/andy/dev/js/pol-beta/package.json
data:
data: {
data: name: 'pol',
@devandy
devandy / gist:3487797
Created August 27, 2012 11:48
package.json
{
"name": "pol",
"version": "0.0.1-24",
"private": true,
"scripts": {
"start": "app.coffee"
},
"dependencies": {
"ejs": "0.8.0",
"express": "3.0.0rc1",
@devandy
devandy / gist:3487738
Created August 27, 2012 11:36
production code
exports.Archive = class Archive
constructor: (@set = 'm12') ->
@items = []
load: (cb) ->
http.get {host: 'magiccards.info', path: "/query?q=e%3A#{@set}&v=list&s=cname"}, (res) =>
rawDataset = ''
res.on 'data', (chunk) =>
rawDataset += chunk.toString()
res.on 'end', =>