Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) | 
| Ctrl+X | cut current line (if no selection) | 
| Ctrl+⇧+K | delete line | 
| Ctrl+↩ | insert line after | 
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
| Ctrl+C | copy current line (if no selection) | 
| Ctrl+X | cut current line (if no selection) | 
| Ctrl+⇧+K | delete line | 
| Ctrl+↩ | insert line after | 
#Four Ways To Do Pub/Sub With jQuery and jQuery UI (in the future)
Between jQuery 1.7 and some of work going into future versions of jQuery UI, there are a ton of hot new ways for you to get your publish/subscribe on. Here are just four of them, three of which are new.
(PS: If you're unfamiliar with pub/sub, read the guide to it that Julian Aubourg and I wrote here http://msdn.microsoft.com/en-us/scriptjunkie/hh201955.aspx)
##Option 1: Using jQuery 1.7's $.Callbacks() feature:
| /** | |
| * Track JS error details in Universal Analytics | |
| */ | |
| function trackJavaScriptError(e) { | |
| var errMsg = e.message; | |
| var errSrc = e.filename + ': ' + e.lineno; | |
| ga('send', 'event', 'JavaScript Error', errMsg, errSrc, { 'nonInteraction': 1 }); | |
| } | 
| [-] generic bindings | |
| View switching | |
| 'm' view-main Show main view | |
| 'd' view-diff Show diff view | |
| 'l' view-log Show log view | |
| 't' view-tree Show tree view | |
| 'f' view-blob Show blob view | |
| 'B' view-blame Show blame view | |
| 'H' view-branch Show branch view | |
| 'h' view-help Show help page | 
Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.
video::webkit-media-controls-timeline {
  background-color: lime;
}
video /deep/ input[type=range] {Related tutorial: http://cli.learncodethehardway.org/book/
CodeCademy: https://www.codecademy.com/courses/learn-the-command-line
Official cheatsheet: http://cd64.de/linux
Note: Hold option (alt) and click a position in the current line to move your cursor to that position.
Working with PHP CLI: https://gist.github.com/hofmannsven/9976152
User setup (for .bash_profile, .gitconfig,...): cd ~
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout. This is also called reflow or layout thrashing, and is common performance bottleneck.
elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParentelem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeightelem.getClientRects(), elem.getBoundingClientRect()У CSS есть несколько базовых проблем, которые позволяют очень быстро отстрелить себе ногу при неправильном использовании:
Глобальный неймспейс – в серверном программировании все что написано в файле, в файле и остается. Все же что написано в css и js засирает глобальное пространство имен со всеми вытекающими. В JS эту проблему сейчас побороли всякими модульными системами, а вот с css сложнее. В идеальном мире это должен починить Shadow DOM и настоящие Web Components, но пока их нет единственный способ с этим бороться – следовать какой-то системе именований селекторов, которая по возможности уменьшает и исключает возможные конфликты.
Каскадность – если на один элемент может сработать несколько правил, то они все и сработают последовательно. Если есть элемент h1.title, на него сработают все правила для тегов h1 и все правила для класса .title. Так как весь html состоит из тегов, то правил которые применяются на теги без классов будут работать на все вообще.
Соответственно наз