| gitflow | git |
|---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
| var data = "do shash'owania"; | |
| var crypto = require('crypto'); | |
| crypto.createHash('md5').update(data).digest("hex"); |
| # For use in Chef: | |
| # Adds a command: git-pull-recursive | |
| file "/usr/local/bin/git-pull-recursive" do | |
| owner "root" | |
| group "root" | |
| mode "0755" | |
| action :create | |
| content 'find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull" \;' | |
| end |
| " vim:fdm=marker | |
| " Vundle {{{ | |
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() | |
| Bundle 'airblade/vim-gitgutter' | |
| Bundle 'bling/vim-airline' | |
| Bundle 'chriskempson/base16-vim' |
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.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft,elem.offsetTop,elem.offsetWidth,elem.offsetHeight,elem.offsetParent
Code patterns:
- Middleware
- Routers
- Single entry point...
OOP patterns:
- Facade, Singletone
- Mixin, Closure
- Factory, Decorator
- Class, Object
| <input readonly onfocus="this.removeAttribute('readonly')"> |
| #!/usr/bin/env node | |
| const NKEYS = 4; | |
| function arrayOfSize(size) { | |
| var a = Array(size); | |
| for (var i = 0; i < size; i += 1) | |
| a[i] = null; |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/