Skip to content

Instantly share code, notes, and snippets.

View j3lte's full-sized avatar

Jelte Lagendijk j3lte

View GitHub Profile
jQuery.extend = jQuery.fn.extend = function() {
var options, name, src, copy, copyIsArray, clone,
target = arguments[0] || {},
i = 1,
length = arguments.length,
deep = false;
// Handle a deep copy situation
if ( typeof target === "boolean" ) {
deep = target;
* [AdvancedNewFile](https://github.com/skuroda/Sublime-AdvancedNewFile)
* [AngularJS](https://github.com/angular-ui/AngularJS-sublime-package)
* [AngularJS (CoffeeScript)](https://github.com/Iristyle/Sublime-AngularJS-Coffee-Completions)
* [AngularJS Snippets](https://github.com/maxhoffmann/angular-snippets)
* [ApplySyntax](https://github.com/facelessuser/ApplySyntax)
* [Automatic Backups](https://github.com/joelpt/sublimetext-automatic-backups)
* [BracketHighlighter](https://github.com/facelessuser/BracketHighlighter)
* [ChangeQuotes](https://github.com/colinta/SublimeChangeQuotes)
* [Clipboard History](https://github.com/kemayo/sublime-text-2-clipboard-history)
* [Coffee Formatter](https://github.com/derekchiang/Sublime-CoffeeScript-Formatter)

Step 1: Clone the bundles into your Sublime Text packages directory

cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript
git clone https://github.com/miksago/jade-tmbundle.git Jade
git clone https://github.com/LearnBoost/stylus.git Stylus

Step 2: Restart Sublime Text 2

// everyone's new favorite closure pattern:
(function(window,document,undefined){ ... })(this,this.document);
// when minified:
(function(w,d,u){ ... })(this,this.document);
// which means all uses of window/document/undefined inside the closure
// will be single-lettered, so big gains in minification.
// it also will speed up scope chain traversal a tiny tiny little bit.