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
| var memoizer = function (cache, operation) { | |
| var self = function (n) { | |
| var result = cache[n]; | |
| if (typeof result !== 'number') { | |
| result = operation(self, n); | |
| cache[n] = result; | |
| } | |
| return result; | |
| }; | |
| return self; |
| var debug = true, | |
| _log = function() { | |
| debug && window.console && console.log.apply(console, arguments); | |
| }; |
| // Common Regular Expression | |
| // Email Address | |
| /* Humans */ var emailHuman = /[-\w.]+@([A-z0-9][-A-z0-9]+\.)+[A-z]{2,4}/i; | |
| /* Bots */ var emailBots = /^[\w!#$%&\’*+\/=?^`{|}~.-]+@(?:[a-z\d][a-z\d-]*(?:\.[a-z\d][a-z\d-]*)?)+\.(?:[a-z][a-z\d-]+)$/i; | |
| // Date | |
| var datePattern = /([01]?\d)[-\/ .]([0123]?\d)[-\/ .](\d{4})/; | |
| // Web Address |
| function randomNumber(from, to) { | |
| return Math.floor((Math.random()*(to - from + 1)) + from); | |
| } |
| # ~/.gitconfig from @boblet | |
| # initially based on http://rails.wincent.com/wiki/Git_quickstart | |
| [core] | |
| excludesfile = /Users/oli/.gitignore | |
| legacyheaders = false # >git 1.5 | |
| quotepath = false | |
| # http://stackoverflow.com/questions/136178/git-diff-handling-long-lines | |
| pager = less -r | |
| # if ↑ doesn’t work, try: pager = less -+$LESS -FRX |
| function List() { | |
| this.head = this.tail = null | |
| } | |
| List.prototype.add = function add(node) { | |
| if (this.head) { | |
| node.next = this.head; | |
| this.head.prev = node; | |
| } | |
| this.head = node; |
##Instructions to protect your services?
Edit: I few months ago I got a new laptop and did the same thing on Mavericks.
I just replaced the hard drive of my mbp and decided to do a clean install of Mountain Lion (10.8.5) since I was still using Snow Leopard (10.6.8).
I kinda regret for not using Boxen to automate the
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Nearest Chariging Station</title> | |
| <style> | |
| #map { | |
| height: 500px; | |
| width: 100%; | |
| } |