git checkout -: Return to the last branch
alt+F7: move the screen with arrow keys. ps: shift + arrow go to the end of the screenalt+F8: resize the screen with arrow keys.alt+F10: toggle screen size (max and custom size)ctrl+alt+up-arrow: see all workspacesctrl+alt+down-arrow: see all windows that are open in the current workspacectrl+alt+[left|right]-arrow: move to the next/previous workspacegrab window with mouse and move to the extremitiesresize the window in a half or a quarter of the total screen sizexdpyinfo | grep 'dimensions:': Use xdpyinfo command to find out current screen resolution
ctrl + d= down the filectrl + u= up the filectrl + f= positioning the ((current line || last visible line) - 1) at the top of the screenctrl + b= positioning the ((current line || first visible line) + 1) at the bottom of the screenH M L= Move to the top/middle/bottom of the screen (i.e. High/Middle/Low)''= Jump back to where you just were. Could jump back and forth
| var books = []; | |
| for ( var i = 0; i <= 15; i += 1 ) { | |
| books.push({ | |
| book : 'Book ' + i, | |
| createdOn : new Date( 2015, i, 13 ) | |
| }); | |
| if ( i % 5 === 0 ) { |
| var strings = [ 'Toggl', 'really', 'amazing', 'awesome' ]; | |
| console.log( getStrings( strings )); | |
| ///////////// Methods | |
| function getStrings( strings ) { | |
| /* | |
| * |
| // inheritance of access properties | |
| // using the guitar object above | |
| var musicman = Object.create( guitar ); | |
| musicman.cost = 4000; | |
| console.log( 'MusicMan' ); | |
| console.log( musicman.priceUS ); | |
| // 4000 | |
| console.log( musicman.priceBR ); |
| <p ng-show="formName.inputName.$error.minlength" | |
| class="help-block"> | |
| Senha muito curta! | |
| </p> |
(by @andrestaltz)
So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.
Prereq:
apt-get install zsh
apt-get install git-coreGetting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
| function _populate( data ) { | |
| var fields = []; | |
| for ( key in data ) { | |
| var obj = {}; | |
| obj[ key ] = data[ key ]; | |
| fields |