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
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
| /** | |
| * j3lte namespace object. | |
| * Creates the j3lte object without overriding previous instances of it. | |
| */ | |
| var j3lte = (j3lte === undefined) ? {} : j3lte; | |
| j3lte.namespace = function () { | |
| var a = arguments, o = null, i, j, d; | |
| for (i = 0; i < a.length; i = i + 1) { | |
| d = ("" + a[i]).split("."); |
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
| 'use strict'; | |
| /** | |
| * IE8 does not support certain Javascript functions | |
| * These are added using this script | |
| */ | |
| // Add ECMA262-5 method binding if not supported natively | |
| // | |
| if (!('bind' in Function.prototype)) { | |
| Function.prototype.bind= function(owner) { |
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
| (function( jQuery, window, undefined ) { | |
| "use strict"; | |
| var matched, browser; | |
| jQuery.uaMatch = function( ua ) { | |
| ua = ua.toLowerCase(); | |
| var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || | |
| /(webkit)[ \/]([\w.]+)/.exec( ua ) || |
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
| // Add this at the top of Gruntfile.js: | |
| var request = require('request'); | |
| module.exports = function(grunt) { | |
| grunt.initConfig({ | |
| // ......... | |
| // other grunt tasks |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| 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; |
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
| if( ( /android/gi ).test( navigator.appVersion ) ) { | |
| console = { | |
| "_log" : [], | |
| "log" : function() { | |
| var arr = []; | |
| for ( var i = 0; i < arguments.length; i++ ) { | |
| arr.push( arguments[ i ] ); | |
| } | |
| this._log.push( arr.join( ", ") ); | |
| }, |
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
| * [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) |
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
| var Canvas = require('canvas'); | |
| function Mandeliter(cx, cy, maxiter) | |
| { | |
| var i; | |
| var x = 0.0; | |
| var y = 0.0; | |
| for (i = 0; i < maxiter && x*x + y*y <= 4; ++i) | |
| { | |
| var tmp = 2*x*y; |