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
express = require 'express' | |
engines = require 'consolidate' | |
routes = require './routes' | |
app = express() | |
exports.startServer = ((config) -> | |
server = @listen config.server.port, -> | |
console.log "Express server listening on port %d in %s mode", server.address().port, app.settings.env |
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
var $super = function(funcName){ | |
funcName = funcName || 'initialize'; | |
// _.bindAll messes upp constructor | |
// TODO: Add more tests with multiple inheritance | |
var _super = this.constructor.__super__ || this.__proto__.constructor.__super__; | |
return _super[funcName].apply(this, _.rest(arguments)); | |
}, | |
_$super = function(funcName){ | |
funcName = funcName || 'initialize'; |
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
define([ | |
'jquery' | |
], function ($) { | |
"use strict"; | |
/** | |
* Method for switching between 2 or multiple classes | |
* @param {String} currentClasses The classes that currently exists | |
* @param {String} newClasses The classes we want to change to | |
* @param {Mixed} [expression] Expression/callback that will be evaluated. |
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
function isPlainObject(val){ | |
return val.toString() === "[object Object]"; | |
} | |
isPlainObject({}) // => true | |
isPlainObject([]) // => false | |
isPlainObject(function(){}) // => false |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>content</key> | |
<string>describe("${1:description}", function() { | |
before(function() { | |
$2 | |
}); | |
after(function() { |
NewerOlder