Skip to content

Instantly share code, notes, and snippets.

@hew
hew / reducer-with-effects.js
Created Aug 20, 2021 — forked from davidkpiano/reducer-with-effects.js
An idea for actor-model-based effects with reducers
View reducer-with-effects.js
import {
useReducerWithEffects,
// hand-wavey, but meant to be used by React to create something
// external will produce async values sent to components
createEffect
} from 'react';
function fetchUserEffect(id, parentRef) {
const controller = new AbortController();
const signal = controller.signal;
@hew
hew / _readme.md
Last active Apr 21, 2019 — forked from alexfedoseev/Promise.re
Promise.re (native implementation)
View _readme.md

Promise.re (native implementation)

@hew
hew / _readme.md
Last active Jan 18, 2019 — forked from lilactown/promises.re
Notes on using JavaScript Promises in ReasonML/BuckleScript
View _readme.md

thinking on promises and error handling in reasonml

@hew
hew / Aa_readme.md
Last active Jan 18, 2019 — forked from mhallin/App.re
Async import pattern
View Aa_readme.md

async import pattern in reasonml

View _readme.md

reasonml pattern matching in javascript...as best it can be

@hew
hew / _readme.md
Last active Jan 18, 2019 — forked from jin/hackerrank.ml
OCaml HackerRank template code
View _readme.md

OCaml HackerRank template code

@hew
hew / _readme.md
Last active May 16, 2017 — forked from bcomnes/postcss.config.js
Simple Postcss Config
View _readme.md

Simple Postcss Config

@hew
hew / _readme.md
Last active May 16, 2017 — forked from hlissner/replace.sh
Bulk search & replace with ag (the_silver_searcher)
View _readme.md

Bulk search & replace with ag (the_silver_searcher)

@hew
hew / ._readme.md
Last active May 16, 2017 — forked from dre1080/.powenv
Using Pow!! with Foreman (Configuration)
View ._readme.md

Make Pow!! export all the env variables contained in the .env file used by Foreman.

@hew
hew / _readme.md
Last active May 16, 2017 — forked from hofmannsven/README.md
My Git Cheatsheet
View _readme.md

Cheatsheet on how to use Git