Skip to content

Instantly share code, notes, and snippets.

View grushetsky's full-sized avatar

Konstantin Grushetsky grushetsky

View GitHub Profile
@grushetsky
grushetsky / searching-for-efficiency.md
Last active November 29, 2020 19:55
🔗 Useful links related to "Searching for Efficiency" seminar
@grushetsky
grushetsky / wink-tv-dependency.md
Last active December 4, 2019 10:52
🔗 Useful links related to demo talk "Wink. TV Dependency"
@grushetsky
grushetsky / Infrastructure.js
Last active March 10, 2019 23:59 — forked from sebmarkbage/Infrastructure.js
Poor man's algebraic effects in JavaScript
let cache = new Map();
let pending = new Map();
function fetchTextSync(url) {
if (cache.has(url)) {
return cache.get(url);
}
if (pending.has(url)) {
throw pending.get(url);
}