At the time of this writing Divvy hasn't been updated for OS X 10.9 so it tries to direct you to the Accessibility panel of the System Preferences. Actually the assistive device settings have been moved to the Security pane as shown below:
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
describe("Something", function () { | |
it("should promise", promising(function () { | |
return Promise.reject("Ouch!"); | |
})); | |
}); |
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
_delegate = Backbone.Marionette.View::delegateEvents | |
_close = Backbone.Marionette.View::close | |
_.extend Backbone.Marionette.View::, | |
delegateEvents: (events) -> | |
_delegate.call(@, events) | |
@bindShortCuts() | |
bindShortCuts: -> | |
for key, method of _.result(@, "shortCuts") |
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
//= require ../collections/children.js | |
(function($){ | |
demo.models.Parent = Backbone.Model.extend({ | |
initialize: function(options) { | |
this.children = new demo.collections.Children(); | |
this.attributes = this.parse(this.attributes); | |
} | |
, exampleJSON: { | |
someAttr: 'some value' |
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
// Example browserify transform which precompiles Jade | |
// templates including them in the bundle, allowing you | |
// to use: | |
// var tmpl = require('./templates/template.jade'); | |
// | |
// Supports layouts and blocks | |
// | |
// requirements: | |
// npm install jade through | |
// |
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
/* | |
This small hack loads fonts from the Typekit webfontloader (https://github.com/typekit/webfontloader) | |
contextually, effectively "patching" in a new font if a media query is fired. | |
You need to have 2 seperate kits on Typekit, one for your main fonts, and another for the fonts you want | |
when the media query is fired. | |
Improvements or suggestions welcome! |
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
void function() {//closure | |
var global = this | |
, _initKeyboardEvent_type = (function( e ) { | |
try { | |
e.initKeyboardEvent( | |
"keyup" // in DOMString typeArg | |
, false // in boolean canBubbleArg | |
, false // in boolean cancelableArg | |
, global // in views::AbstractView viewArg |
The spec has moved to a repo: https://github.com/defunctzombie/package-browser-field-spec to facilitate collaboration.
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 express = require('express'), | |
httpProxy = require('http-proxy'), | |
app = express(); | |
var proxy = new httpProxy.RoutingProxy(); | |
function apiProxy(host, port) { | |
return function(req, res, next) { | |
if(req.url.match(new RegExp('^\/api\/'))) { | |
proxy.proxyRequest(req, res, {host: host, port: port}); |
Couldn't find the text of this for a while...