Skip to content

Instantly share code, notes, and snippets.

- https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Advanced_techniques
- https://cartoonbeats.com/how-to-sync-web-audio-api-and-web-midi/
- https://www.html5rocks.com/en/tutorials/audio/scheduling/
@darekzak
darekzak / machine.js
Created March 5, 2020 10:37
Generated by XState Viz: https://xstate.js.org/viz
const pedestrianStates = {
initial: 'walk',
states: {
walk: {
on: {
PED_COUNTDOWN: 'wait'
}
},
wait: {
on: {
@darekzak
darekzak / machine.js
Last active March 4, 2020 13:49
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
import rootReducer from '../my-rootreducer-dir';

function renderWithRedux(ui, { initialState, store = createStore(rootReducer, initialState) } = {}, renderFn = render) {
  const obj = {
    ...renderFn(<Provider store={store}>{ui}</Provider>),
    store,
  };
  obj.rerenderWithRedux = (el, nextState) => {
@darekzak
darekzak / introrx.md
Created January 26, 2016 01:18 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing