Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
| // All navigation that is relative should be passed through the navigate | |
| // method, to be processed by the router. If the link has a `data-bypass` | |
| // attribute, bypass the delegation completely. | |
| $(document).on("click", "a[href]:not([data-bypass])", function(evt) { | |
| // Get the absolute anchor href. | |
| var href = { prop: $(this).prop("href"), attr: $(this).attr("href") }; | |
| // Get the absolute root. | |
| var root = location.protocol + "//" + location.host + Application.root; | |
| // Ensure the root is part of the anchor href, meaning it's relative. |
| (function (name, definition){ | |
| if (typeof define === 'function'){ // AMD | |
| define(definition); | |
| } else if (typeof module !== 'undefined' && module.exports) { // Node.js | |
| module.exports = definition(); | |
| } else { // Browser | |
| var theModule = definition(), global = this, old = global[name]; | |
| theModule.noConflict = function () { | |
| global[name] = old; | |
| return theModule; |
Prereq:
apt-get install zsh
apt-get install git-coreGetting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
$ brew install https://raw.github.com/paulnicholson/homebrew/master/Library/Formula/stud.rb$ curl https://gist.githubusercontent.com/paulnicholson/2050941/raw/7e4d2178e3733bed18fdfe737277c3cb72241d39/powssl > ~/bin/powssl
$ chmod +x ~/bin/powssl$ powssl| # Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key | |
| # that enables you to choose a character from a menu of options. If you are on Lion | |
| # try it by pressing and holding down 'e' in any app that uses the default NSTextField | |
| # for input. | |
| # | |
| # It's a nice feature and continues the blending of Mac OS X and iOS features. However, | |
| # it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode, | |
| # as it means you cannot press and hold h/j/k/l to move through your file. You have | |
| # to repeatedly press the keys to navigate. |
| var page = require('webpage').create(); | |
| page.open('http://jsbin.com/ifuma#noedit', function () { | |
| setTimeout(function () { | |
| page.sendEvent("mousedown", 10, 10); | |
| page.sendEvent("mousemove", 200, 200); | |
| page.sendEvent("mouseup", 200, 200); | |
| page.render('ss.png'); | |
| phantom.exit(); | |
| }, 3000); | |
| }); |
| define(['require', 'exports'], function(require, exports) { | |
| exports.GATrackingHelper = function(settings) { | |
| // MEMBERS & DEFAULTS | |
| var urchinId = settings.gaqId || false, | |
| devId = settings.devId || 'UA-3172639-5', | |
| page = settings.page || null, | |
| trackingLabel = settings.label || false, | |
| domainName = settings.domainName || '.defencejobs.gov.au', |