Skip to content

Instantly share code, notes, and snippets.

@justinobney
justinobney / SketchSystems.spec
Created November 15, 2023 15:57
Integration Process
Integration Process
Initial Assessment
primary goals determined -> System Evaluation
System Evaluation
has customer portal -> Portal Assessment
no customer portal -> Feature Selection
Portal Assessment
Home
timeout -> Idle Loop
Idle Loop
activate -> Bot Selection
Bot Selection
select clean -> Clean
select guide -> Guide
select serve -> Serve
Clean
timeout -> Idle Loop
actionable*
STAGE -> staged
staged
SCHEDULE -> scheduled
SKIP -> skipped
scheduled
PROCESS -> processing
CANCEL -> cancelled
processing
SUCCESS -> processed
@justinobney
justinobney / machine.js
Last active May 30, 2021 14:36
Generated by XState Viz: https://xstate.js.org/viz
const fetchData = () =>
delay(
Math.floor(Math.random() * 100) % 2 === 0 ? "staged" : "scheduled",
1000
);
const actionableAccountMachine = Machine(
{
id: "root",
initial: "idle",
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
{
"cmd": "update",
"method": "regression",
"conditions": {
"AR": 1,
"KS": 1,
"WY": 1,
"SD": 0,
"CA": 0,
"NV": 1,

Gateway

  • Handle CardConnect 401's

Product Management

  • Basic product management

Payment Process

@justinobney
justinobney / README.md
Created January 30, 2020 01:14 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
import produce, {Draft} from 'immer';
import {useReducer, useMemo} from 'react';
type ActionCreator<State, Payload> = (
payload: Payload
) => {type: string; payload: Payload};
type CreatedAction<State, Payload> = ActionCreator<State, Payload> & AnyAction;
type Handler<State, Payload> = (state: Draft<State>, payload: Payload) => void;
type Handlers<State> = {
[actionType: string]: Handler<State, any>;