Skip to content

Instantly share code, notes, and snippets.

View ascorbic's full-sized avatar

Matt Kane ascorbic

View GitHub Profile
@ascorbic
ascorbic / machine.js
Created April 1, 2020 11:17
Generated by XState Viz: https://xstate.js.org/viz
const noop = async () => {}
const initialize = noop
const customizeSchema = noop
const sourceNodes = noop
const buildSchema = noop
const createPages = noop
const createPagesStatefully = noop
const calculateDirtyQueries = noop
const extractQueries = noop
const runStaticQueries = noop
--- src/bootstrap/index.js 2020-06-05 09:41:29.000000000 +0100
+++ src/services/initialize.ts 2020-06-05 09:41:29.000000000 +0100
@@ -1,52 +1,47 @@
-/* @flow */
+import _ from "lodash"
+import { slash } from "gatsby-core-utils"
+import fs from "fs-extra"
+import md5File from "md5-file/promise"
+import crypto from "crypto"
+import del from "del"
@ascorbic
ascorbic / machine.js
Last active July 7, 2020 15:00
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@ascorbic
ascorbic / machine.js
Created July 7, 2020 15:55
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@ascorbic
ascorbic / machine.js
Last active July 17, 2020 14:25
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions