Having both Node.js and io.js installed with NVM was giving me a load of problems, mainly with npm. So I uninstalled NVM and manage Node.js and io.js with homebrew.
Heres how.
Install Node.js and io.js
$ brew install node
$ brew install iojs
| /** | |
| * Module dependencies. | |
| */ | |
| var express = require('express') | |
| , routes = require('./routes') | |
| , http = require('http') | |
| , mongoose = require('mongoose') | |
| , path = require('path'); |
Having both Node.js and io.js installed with NVM was giving me a load of problems, mainly with npm. So I uninstalled NVM and manage Node.js and io.js with homebrew.
Heres how.
Install Node.js and io.js
$ brew install node
$ brew install iojs
| storage: | |
| dbPath: "./data" | |
| directoryPerDB: true | |
| journal: | |
| enabled: true | |
| engine: "wiredTiger" | |
| wiredTiger: | |
| engineConfig: | |
| cacheSizeGB: 8 | |
| journalCompressor: zlib |
| storage: | |
| dbPath: "./data" | |
| directoryPerDB: true | |
| journal: | |
| enabled: true | |
| engine: "wiredTiger" | |
| wiredTiger: | |
| engineConfig: | |
| cacheSizeGB: 8 | |
| journalCompressor: none |
| storage: | |
| dbPath: "./data" | |
| directoryPerDB: true | |
| journal: | |
| enabled: true | |
| engine: "wiredTiger" | |
| wiredTiger: | |
| engineConfig: | |
| cacheSizeGB: 8 | |
| journalCompressor: snappy |
| #!/bin/sh | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' |
| #!/bin/sh | |
| # one way (older scala version will be installed) | |
| # sudo apt-get install scala | |
| #2nd way | |
| sudo apt-get remove scala-library scala | |
| wget http://www.scala-lang.org/files/archive/scala-2.11.7.deb | |
| sudo dpkg -i scala-2.11.7.deb | |
| sudo apt-get update |
#RxJS 5 Operators By Example
UPDATE: I have moved the contents of this gist plus more to https://github.com/btroncone/learn-rxjs and http://www.learnrxjs.io. For expanded examples, explanations, and resources, please check out this new location!
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.