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 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
| _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 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
| describe("Something", function () { | |
| it("should promise", promising(function () { | |
| return Promise.reject("Ouch!"); | |
| })); | |
| }); |
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
| ASQ() | |
| .all( // or .gate(..) | |
| // these 3 run "in parallel" | |
| function(done){ setTimeout(done,100); }, | |
| function(done){ setTimeout(done,200); }, | |
| function(done){ setTimeout(done,300); } | |
| ) | |
| .then(function(){ | |
| alert("All tasks are complete, and that only took ~300ms, not 600ms!"); | |
| }); |
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
| #!/usr/bin/env bash | |
| # fresh-chrome | |
| # | |
| # Use this script on OS X to launch a new instance of Google Chrome | |
| # with its own empty cache, cookies, and user configuration. | |
| # | |
| # The first time you run this script, it will launch a new Google | |
| # Chrome instance with a permanent user-data directory, which you can | |
| # customize below. Perform any initial setup you want to keep on every |
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
| #!/bin/bash | |
| git reset --hard HEAD@{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
| #!/bin/sh | |
| npm install |
Context: http://updates.html5rocks.com/2013/09/dialog-element-Modals-made-easy
showandcloseare not opposites. It should beopen, closeorshow, hide.open closeis the obvious winner.- There is no declarative api, which is actually really simple:
<button controls="my-dialog">
Toggle Dialog
</button>
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
| // Because people can't seem to find the gist description, here is the source | |
| // of this code, a post found in last weeks JS Weekly, it is not my code | |
| // http://www.angularails.com/articles/creating_simple_directive_in_angular | |
| angular.module('ui-multi-gravatar', []) | |
| .directive('multiAvatar', ['md5', function (md5) { | |
| return { | |
| restrict: 'E', | |
| link:function(scope, element, attrs) { |
