Skip to content

Instantly share code, notes, and snippets.


Andreas Hoffmann Furizaa

Block or report user

Report or block Furizaa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View redux-selector-composition.js
const bindSelectors = (selectors, stateSlice) =>
Object.keys(selectors).reduce((prev, curr) =>
({ ...prev, [curr]: (...args) => {
const [state,] = args;
return selectors[curr](state[stateSlice],;
// State
View boot.js
// This script will boot the servers with the number of workers
// specified in WORKER_COUNT.
// The master will respond to SIGHUP, which will trigger
// restarting all the workers and reloading the app.
var cluster = require('cluster');
var chalk = require('chalk');
// Define how many workers to run on the system
You can’t perform that action at this time.