| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
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
| // Also see http://michaux.ca/articles/class-based-inheritance-in-javascript | |
| function extend(Super, Sub) { | |
| // By using a dummy constructor, initialization side-effects are eliminated. | |
| function Dummy() {} | |
| // Set dummy prototype to Super prototype. | |
| Dummy.prototype = Super.prototype; | |
| // Create Sub prototype as a new instance of dummy. | |
| Sub.prototype = new Dummy(); | |
| // The .constructor propery is really the Super constructor. | |
| Sub.baseConstructor = Sub.prototype.constructor; |
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
| npm = require 'npm' | |
| npm.load {global: true}, (error, npm) -> | |
| npm.commands.ls [], true, (error, result) -> | |
| for moduleName, module of result.dependencies | |
| if moduleName[..8] == 'clitool-' | |
| # load module as a plugin |
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
| /* | |
| * grunt | |
| * https://github.com/cowboy/grunt | |
| * | |
| * Copyright (c) 2012 "Cowboy" Ben Alman | |
| * Licensed under the MIT license. | |
| * http://benalman.com/about/license/ | |
| */ | |
| /*global config:true, task:true*/ |
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
| As a frequent consumer of ironic entertainment, there’s little I enjoy more than | |
| reading a well-reasoned article only to be confronted by inconsistencies in the | |
| article author’s comments. But as an unfortunately-not-nearly-as-frequent consumer | |
| of consistent analytic reasoning, the aforementioned “little” would a well-reasoned | |
| article in which the author’s comments are just as well reasoned and consistent. |
First, install grunt v0.2.14 (or newer) via npm with npm install -g grunt, if you haven't already done so.
Next, install PhantomJS. If you're on OS X, use homebrew and brew install phantomjs. If you're on Windows or Linux, download from www.phantomjs.org and put it in your path.
Finally, just open a terminal and...
git clone https://github.com/jquery/jquery
cd jquery
git submodule update --init
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
| leadingWhitespace = true | |
| tbody = true | |
| htmlSerialize = true | |
| style = true | |
| hrefNormalized = true | |
| opacity = true | |
| cssFloat = true | |
| checkOn = false | |
| optSelected = true | |
| getSetAttribute = true |
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
| [master:!?][cowboy@cowbook:/Volumes/Data/Dropbox/Projects/Repos/cowboy/forks/jquery-grunt] | |
| [18:21:01] $ gl -1 | |
| commit 974e4afbe2b69cdb7e90bf0e7058b6330003f21f | |
| Author: Dave Methvin <[email protected]> | |
| Date: Tue Jan 31 20:11:53 2012 -0500 | |
| Updating the source version to 1.7.2pre | |
| [master:!?][cowboy@cowbook:/Volumes/Data/Dropbox/Projects/Repos/cowboy/forks/jquery-grunt] | |
| [18:21:08] $ grunt qunit |
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
| console.log('child spawned'); | |
| process.on('exit', function() { | |
| // This never executes. | |
| process.send('exited from within child'); | |
| }); | |
| function tellParentImDone() { | |
| process.send('hey parent, all done'); | |
| } |
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
| [ | |
| ["/*", "/", "*"], | |
| ["/foo", "/", "foo"], | |
| ["/foo*", "/", "foo*"], | |
| ["/foo*.js", "/", "foo*.js"], | |
| ["/foo/*", "/foo/", "*"], | |
| ["/foo?", "/", "foo?"], | |
| ["/foo?.js", "/", "foo?.js"], | |
| ["/foo/?", "/foo/", "?"], | |
| ["/bar/foo", "/bar/", "foo"], |