Skip to content

Instantly share code, notes, and snippets.

View HipsterBrown's full-sized avatar

Nick Hehr HipsterBrown

View GitHub Profile
@HipsterBrown
HipsterBrown / machine.js
Last active February 2, 2021 16:18
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@HipsterBrown
HipsterBrown / machine.js
Last active February 2, 2021 14:58
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@HipsterBrown
HipsterBrown / machine.js
Created January 26, 2021 20:48
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@HipsterBrown
HipsterBrown / machine.js
Created January 26, 2021 16:24
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@HipsterBrown
HipsterBrown / machine.js
Created January 26, 2021 16:22
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@HipsterBrown
HipsterBrown / machine.js
Created January 26, 2021 16:21
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@HipsterBrown
HipsterBrown / machine.js
Created January 14, 2021 16:48
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@HipsterBrown
HipsterBrown / machine.js
Last active January 11, 2021 16:23
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@HipsterBrown
HipsterBrown / index.html
Last active September 3, 2020 17:06
Minimal recreation of issue in `@react-aria/button` v3.2.1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>React-Aria Example</title>
<script src="./index.tsx"></script>
</head>
<body>
<div id="app"></div>
</body>
@HipsterBrown
HipsterBrown / mirage.tsx
Created August 12, 2020 18:48
withServer - MirageJS Storybook decorator example
import React from 'react';
import { makeDecorator, StoryContext, StoryGetter } from '@storybook/addons';
import { DataFetchProvider } from '@betterment/js-runtime';
import { makeServer, Response, Server } from '../server.ts';
interface MirageServerProps {
fixtures?: unknown;
logging?: boolean;
errors?: {
[endpoint: string]: number | string;