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 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 GIST IS OUTDATED. SEE : https://github.com/j3lte/chanarchive | |
// ****************************************************************** | |
// URL Representation | |
/* | |
JSON representations of threads and indexes are exposed at the following URLs: | |
http(s)://api.4chan.org/board/res/threadnumber.json |
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 Connection = require('ssh2'); | |
var c = new Connection(); | |
c.on('connect', function() { | |
console.log('Connection :: connect'); | |
}); | |
c.on('ready', function() { | |
console.log('Connection :: ready'); | |
c.exec('uptime && echo && ps aux && echo && free', function(err, stream) { | |
if (err) throw err; |
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
/** | |
* SITECOM WPS KEY Calculator | |
* | |
* Calculates the WPS key of a Sitecom AP in the OUI range of 00:0C:F6 | |
*/ | |
/* | |
Checksum calculation, based on wps_pin_checksum in wps_common.c | |
Source: http://reaver-wps.googlecode.com/svn/trunk/src/wps/wps_common.c | |
*/ |
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 fs = require("fs"); | |
var forker = require('child_process'); | |
var log = console.log; | |
log('\nRunning under Node.js version ' + process.versions.node + ' on ' + process.arch + | |
'-type processor, ' + process.platform + ' platform.'); | |
var fileName = "app.js"; | |
var fileNameMin = "app.min.js"; |
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
/** | |
* Horizontal Stock Ticker for jQuery. | |
* | |
* @package jStockTicker | |
* @author Peter Halasz <skinner@gmail.com> | |
* @license http://www.gnu.org/licenses/gpl-3.0.txt GPL v3.0 | |
* @copyright (c) 2009, Peter Halasz all rights reserved. | |
*/ | |
( function($) { |
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
/* LITTLE CODE DEBUGGER, call it with : console.log(__debug); */ | |
Object.defineProperty(global, '__stack', { get: function() { var orig = Error.prepareStackTrace; Error.prepareStackTrace = function(_, stack) { return stack; }; var err = new Error; Error.captureStackTrace(err, arguments.callee); var stack = err.stack; Error.prepareStackTrace = orig; return stack; }}); | |
Object.defineProperty(global, '__debug', { get: function(){ return "[+] Called (" + __stack[1].getLineNumber() + ' : ' + __stack[1].getFunctionName() + ") From ("+ __stack[2].getLineNumber() + ' : ' + __stack[2].getFunctionName() + ")"; }}); | |
/* END DEBUG */ | |
/* HOW TO USE | |
This can be traced, using | |
console.log(__debug); | |
In your console you will see lines like these: |
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
// 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. |
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 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; |
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
* [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) |
OlderNewer