Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View donovanh's full-sized avatar

Donovan Hutchinson donovanh

View GitHub Profile
@mgutz
mgutz / colors.js
Last active May 30, 2019 09:05
svelte3 actions and getters using nested object store
import {readable, writable} from 'svelte/store';
// could be its own module
const util = {
_root: null,
// similar to createSelector but instead returns a reactive variable
createGetter(store, fn, initialData) {
return readable(initialData, set => {
store.subscribe(state => set(fn(state, this._root)));
@max-mapper
max-mapper / readme.md
Last active October 12, 2015 10:17
introduction to node