| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |
| # 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. |
A timeline of the last four years of detecting good old window.localStorage.
October 2009: 5059daa
介紹協助提昇 F2E Code Style 的兩個工具。
josephj@faria
If you use git on the command-line, you'll eventually find yourself wanting aliases for your most commonly-used commands. It's incredibly useful to be able to explore your repos with only a few keystrokes that eventually get hardcoded into muscle memory.
Some people don't add aliases because they don't want to have to adjust to not having them on a remote server. Personally, I find that having aliases doesn't mean I that forget the underlying commands, and aliases provide such a massive improvement to my workflow that it would be crazy not to have them.
The simplest way to add an alias for a specific git command is to use a standard bash alias.
# .bashrc| ;(function($){ | |
| $.fn.scrollToTop = function(){ | |
| var $this = $(this), | |
| initialY = $this.scrollTop(), | |
| start = +new Date, | |
| speed = Math.min(750, Math.min(1500, initialY)), | |
| now, | |
| t, y | |
| if (initialY == 0) return |
| require 'flickraw' | |
| require 'mini_magick' | |
| require 'parallel' | |
| def get_photo_urls_from_photoset(flickr, photoset_id) | |
| total_pages = nil | |
| current_page = 1 | |
| urls = [] | |
| opts = { | |
| photoset_id: photoset_id, |