(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Most of those rules come from Angular Style Guide (https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md).
In this document, we call angular things the different parts of an angular module: constants, variables, services, factories, controllers, directives, filters, and components.
https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md#iife
Use IIFE to enclose any code
| chamerling@macbook-air-de-christophe:~/src/openpaas/rse-chamerling|CAL-605-rename-events⚡ | |
| ⇒ curl -XDELETE 'http://localhost:9200/users.idx/' | |
| {"acknowledged":true}% chamerling@macbook-air-de-christophe:~/src/openpaas/rse-chamerling|CAL-605-rename-events⚡ | |
| ⇒ node ./bin/cli.js elasticsearch -t users | |
| debug: local/SUBSCRIBE to mongodb:connectionAvailable | |
| [CLI] INFO ElasticSearch has been configured | |
| chamerling@macbook-air-de-christophe:~/src/openpaas/rse-chamerling|CAL-605-rename-events⚡ | |
| ⇒ node ./bin/cli.js reindex -t users |
| import { register } from 'register-service-worker'; | |
| if (process.env.NODE_ENV === 'production') { | |
| register(`${process.env.BASE_URL}service-worker.js`, { | |
| ready () { | |
| console.log('Service worker is active.'); | |
| }, | |
| registered (registration) { | |
| console.log('Service worker has been registered.'); |
| let _ = global._ = require("lodash"); | |
| let Benchmark = global.Benchmark = require("benchmark"); | |
| let Promise = require("bluebird"); | |
| let { Map } = require("immutable"); | |
| let { produce } = require("immer"); | |
| function getItems(count) { | |
| let id = 1; |