Skip to content

Instantly share code, notes, and snippets.

View drejohnson's full-sized avatar

DeAndre Johnson drejohnson

View GitHub Profile
@drejohnson
drejohnson / machine.js
Created January 1, 2021 00:31
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@drejohnson
drejohnson / machine.js
Created January 1, 2021 01:18
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@drejohnson
drejohnson / next-auth-fauna-adapter.ts
Created January 24, 2021 04:50
faunadb adapter for next-auth in typescript
import { query as q } from 'faunadb';
import { createHash, randomBytes } from 'crypto';
import type {
EmailSessionProvider,
Profile,
Session,
} from 'next-auth/adapters';
import type { AppOptions, User } from 'next-auth';
import { SessionProvider } from 'next-auth/client';
@drejohnson
drejohnson / csallseeingeye.py
Created September 19, 2023 17:49 — forked from wanghailei/csallseeingeye.py
Code snippets of All Seeing Eye
# The following code and the code generated art works are the intellectrual properities of Hailei Wang.
# © 2009 - 2014, Hailei Wang. All rights reserved.
from nodebox import geo
colors = ximport("colors")
# Define Brush
def composeimage( x, y, colr, radius, points, diminish ) :
nofill()
stroke()