git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| // Primitive hash function that for a string returns a positive 32 bit int | |
| // Do not use in production, use murmur3 or fnv1 | |
| // You can improve this by changing 5 to 31 | |
| Object.defineProperty(String.prototype, 'hashCode', { | |
| value: function() { | |
| var hash = 0, i, chr; | |
| for (i = 0; i < this.length; i++) { | |
| chr = this.charCodeAt(i); | |
| hash = ((hash << 5) - hash) + chr; | |
| hash |= 0; // Convert to 32bit integer |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| --- Actions --- | |
| $Copy <C-C> <C-Ins> | |
| $Cut <C-X> <S-Del> | |
| $Delete <Del> | |
| $LRU | |
| $Paste <C-V> <S-Ins> | |
| $Redo <C-S-Z> <A-S-BS> | |
| $SearchWeb | |
| $SelectAll <C-A> | |
| $Undo <C-Z> <A-BS> |
| SPC | |
| SPC: find file | |
| , switch buffer | |
| . browse files | |
| : MX | |
| ; EX | |
| < switch buffer | |
| ` eval | |
| u universal arg | |
| x pop up scratch |
| Useful Spacemacs commands | |
| SPC q q - quit | |
| SPC w / - split window vertically | |
| SPC w - - split window horizontally | |
| SPC w = - balance split windows | |
| SPC 1 - switch to window 1 | |
| SPC 2 - switch to window jkk2 | |
| SPC w c - close current window | |
| SPC w d - delete current window |