Skip to content

Instantly share code, notes, and snippets.

@cm2solutions
cm2solutions / introrx.md
Created April 10, 2018 18:10 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@cm2solutions
cm2solutions / slim-redux.js
Created February 4, 2016 19:33 — forked from gaearon/slim-redux.js
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
import os
import sys
import re
import hashlib
import csv
import time
import locale
import getopt