Skip to content

Instantly share code, notes, and snippets.

@alexmnv
alexmnv / redux-saga - custom IO example
Last active March 20, 2022 21:04
redux-saga - runSaga() example with custom IO, using node.js EventEmitter
const { runSaga } = require('redux-saga')
const { takeEvery, select } = require('redux-saga/effects')
const EventEmitter = require('events').EventEmitter
//
// Create Saga IO:
//
const createSagaIO = (emitter, getStateResolve) => ({
// this will be used to resolve take Effects
subscribe: (callback) => {
@davidteren
davidteren / nerd_fonts.md
Last active April 8, 2025 16:32
Install Nerd Fonts via Homebrew [updated & fixed]