Skip to content

Instantly share code, notes, and snippets.

View Alserda's full-sized avatar

Peter Alserda Alserda

  • Form3
  • The Netherlands
View GitHub Profile
@Alserda
Alserda / machine.js
Last active April 25, 2020 12:44
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Alserda
Alserda / store.ts
Last active September 29, 2021 08:52
import { applyMiddleware, combineReducers, createStore, Action } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import { createLogger } from 'redux-logger';
// Types of actions that can be dispatched
enum ActionType {
TOGGLE_LIST_ITEM,
TOGGLE_WHOLE_LIST,
CLEAR_LIST,
@Alserda
Alserda / cloudSettings
Last active March 19, 2018 12:24
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-03-19T12:19:58.869Z","extensionVersion":"v2.9.0"}
import React, { Component } from 'react';
import Name from './Name';
import Introduction from './Introduction';
import Level from './Level';
export default class Game extends Component {
constructor() {
super();