From sdk branch:
CAL
- c1de83930e12d4289e8ed4c826e65e55212645b6
CHAT
- 0f8f478747b1cd2303f5b431619faeb3500699e4
- 102f92e6ff505b55497392b7328cb0e1a9661a20
| 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; |
| 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.'); |
| 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 |
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
(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.
| # Install Jenkins 1.529 on Ubuntu 12.10 | |
| # Build | |
| # sudo docker run -p 8080:8080 -i -t obazoud/jenkins /bin/bash | |
| # Install | |
| # sudo docker pull obazoud/jenkins | |
| # Use | |
| # cd /opt && java -jar jenkins.war |
| #!/usr/bin/env node | |
| var fs = require('fs'); | |
| function getTemperature (device) { | |
| fs.readFile('/sys/bus/w1/devices/' + device + '/w1_slave', 'utf8', function (err, data) { | |
| var output = data.match(/t=(\d+)/); | |
| var calc = output[1] / 1000; |
| # Install JSON gem before: gem install json | |
| curl -s https://api.github.com/orgs/play-project/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
| language: java | |
| env: | |
| global: | |
| - SONATYPE_USERNAME=yourusername | |
| - secure: "your encrypted SONATYPE_PASSWORD=pass" | |
| after_success: | |
| - python addServer.py | |
| - mvn clean deploy --settings ~/.m2/mySettings.xml |