Skip to content

Instantly share code, notes, and snippets.

View osmanov's full-sized avatar

Renat Osmanov osmanov

View GitHub Profile
@osmanov
osmanov / mac-setup-redis.md
Created September 2, 2020 20:11 — forked from tomysmile/mac-setup-redis.md
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@osmanov
osmanov / slim-redux.js
Created July 15, 2016 13: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])) {