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
{ | |
"author": "Ben Ng <[email protected]> (http://benng.me)", | |
"name": "tdk", | |
"description": "Theme Developer Kit from http://toolkitt.com", | |
"keywords": [ | |
"toolkitt", | |
"theme", | |
"browserify" | |
], | |
"version": "0.0.1", |
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
exports.allow = function(resp, req) { | |
if(!resp.headersSent) { | |
resp.setHeader('Access-Control-Allow-Origin', req.headers.origin) | |
resp.setHeader('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS'); | |
resp.setHeader('Access-Control-Allow-Credentials', 'true'); | |
resp.setHeader('Access-Control-Allow-Headers', 'Content-Type'); | |
} | |
}; |
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
function parse_url(str, component) { | |
// http://kevin.vanzonneveld.net | |
// + original by: Steven Levithan (http://blog.stevenlevithan.com) | |
// + reimplemented by: Brett Zamir (http://brett-zamir.me) | |
// + input by: Lorenzo Pisani | |
// + input by: Tony | |
// + improved by: Brett Zamir (http://brett-zamir.me) | |
// + improved by: Ben Ng (http://benng.me) | |
// % note: Based on http://stevenlevithan.com/demo/parseuri/js/assets/parseuri.js | |
// % note: blog post at http://blog.stevenlevithan.com/archives/parseuri |
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
var Application = function () { | |
this.before(function () { | |
this.session.set('pineapple', 'turkey'); | |
console.log(this.session.get('pineapple')); | |
}); | |
}; | |
exports.Application = Application; |
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
var config = { | |
/* Blah blah blah */ | |
, sessions: { | |
store: 'cookie' | |
, key: 'did' | |
, expiry: 14 * 24 * 60 * 60 | |
} | |
}; |
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
var config = { | |
something: 'something' | |
}; | |
module.exports = config; | |
// geddy.config.something == 'something' |
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": "geddy", | |
"description": "Web framework for Node.js", | |
"keywords": [ | |
"Web", | |
"framework", | |
"REST", | |
"MVC", | |
"realtime" | |
], |
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
{ | |
message: "crap", | |
stack: "Error: crapped out etc etc" | |
} |
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
10-20 02:09:32.287: W/CursorWrapperInner(2913): Cursor finalized without prior close() | |
10-20 02:09:32.297: E/System(2913): Uncaught exception thrown by finalizer | |
10-20 02:09:32.297: D/WebView(2913): loadUrlImpl: called | |
10-20 02:09:32.297: E/System(2913): java.io.IOException: close failed: EIO (I/O error) | |
10-20 02:09:32.297: E/System(2913): at libcore.io.IoUtils.close(IoUtils.java:41) | |
10-20 02:09:32.297: E/System(2913): at java.io.FileInputStream.close(FileInputStream.java:121) | |
10-20 02:09:32.297: E/System(2913): at java.io.FileInputStream.finalize(FileInputStream.java:142) | |
10-20 02:09:32.297: E/System(2913): at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:186) | |
10-20 02:09:32.297: E/System(2913): at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:169) | |
10-20 02:09:32.297: E/System(2913): at java.lang.Thread.run(Thread.java:856) |
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
var Ribcage = require('ribcage-view') | |
, OuterView | |
, InnerView | |
, myView; | |
InnerView = Ribcage.extend({ | |
events: { | |
'click a': 'handleClick' | |
} | |
, template: function () { |