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
| define ['cs!models/expense','cs!models/category'], | |
| (Expense, Category) -> | |
| Backbone.Router.extend | |
| routes : | |
| "/" : "home" | |
| home: -> | |
| e = new Expense() | |
| console.log e | |
| console.log('I am home') |
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
| TypeError: Cannot read property 'id' of undefined | |
| at /root/epic.io/node_modules/kue/lib/queue/job.js:83:17 | |
| at Command.callback (/root/epic.io/node_modules/kue/lib/queue/job.js:155:28) | |
| at RedisClient.return_reply (/root/epic.io/node_modules/redis/index.js:425:29) | |
| at RedisReplyParser.<anonymous> (/root/epic.io/node_modules/redis/index.js:81:14) | |
| at RedisReplyParser.emit (events.js:64:17) | |
| at RedisReplyParser.send_reply (/root/epic.io/node_modules/redis/lib/parser/javascript.js:280:18) | |
| at RedisReplyParser.execute (/root/epic.io/node_modules/redis/lib/parser/javascript.js:165:26) | |
| at RedisClient.on_data (/root/epic.io/node_modules/redis/index.js:358:27) | |
| at Socket.<anonymous> (/root/epic.io/node_modules/redis/index.js:93:14) |
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
| this.collection.findAndModify({ | |
| name: name | |
| }, [], { | |
| '$inc': { | |
| 'value': 1 | |
| } | |
| }, { | |
| "new": true, | |
| upsert: true | |
| }, function(err, value) { |
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
| Array.prototype.random = function() { | |
| return this[Math.floor(Math.random() * this.length)]; | |
| } | |
| function wave() { | |
| var hands = ["\\", "/", "|"]; | |
| var heads = ["o", "O"]; | |
| document.title = hands.random() + heads.random() + hands.random(); | |
| }; |
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
| Express.createServer(Express.static(__dirname + '/../public'), form(), Express.logger(), Express.cookieParser(), Express.session({ | |
| secret: '...', | |
| store: this.sessionStore | |
| }), Express.bodyParser()); |
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
| node-waf build | |
| Waf: Entering directory `/Users/deedubs/Projects/NodObjC/node_modules/node-ffi/build' | |
| [1/6] cxx: src/ffi.cc -> build/Release/src/ffi_1.o | |
| In file included from ../src/ffi.h:22, | |
| from ../src/ffi.cc:1: | |
| /usr/local/Cellar/node/0.4.7/include/node/node.h:41:16: error: uv.h: No such file or directory | |
| [2/6] cxx: src/callback_info.cc -> build/Release/src/callback_info_1.o | |
| In file included from ../src/ffi.h:22, | |
| from ../src/callback_info.cc:1: | |
| /usr/local/Cellar/node/0.4.7/include/node/node.h:41:16: error: uv.h: No such file or directory |
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
| Hank:NodObjC deedubs$ node tests/core-createInstance.js | |
| ( | |
| NSString, | |
| NSMutableArray | |
| ) | |
| ( | |
| NSMutableArray, | |
| NSString | |
| ) | |
| Hank:NodObjC deedubs$ |
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
| app = require('express').createServer(); | |
| app.configure -> | |
| app.get '/', (req, res) -> res.send('Hello World!') | |
| app.listen process.env.PORT || 3000 |
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
| { | |
| "name": "cs-heroku", | |
| "description": "CoffeeScript on Heroku", | |
| "dependencies": { | |
| "express": "~2.4.6", | |
| "coffee-script": "latest" | |
| }, | |
| } |
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
| web: node boot.js |