Skip to content

Instantly share code, notes, and snippets.

View chamerling's full-sized avatar
🤡
Pouet

Christophe Hamerling chamerling

🤡
Pouet
View GitHub Profile
@staltz
staltz / introrx.md
Last active March 6, 2026 15:36
The introduction to Reactive Programming you've been missing
@chamerling
chamerling / ES.txt
Last active November 6, 2017 16:34
Dirty ES fix for OP user search
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
@chamerling
chamerling / sdk-barcamp.md
Last active May 17, 2017 07:54
SDK Barcamp 🤘🏻

Missing commits

From sdk branch:

CAL

  • c1de83930e12d4289e8ed4c826e65e55212645b6

CHAT

  • 0f8f478747b1cd2303f5b431619faeb3500699e4
  • 102f92e6ff505b55497392b7328cb0e1a9661a20
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;