Skip to content

Instantly share code, notes, and snippets.

@pyoner
pyoner / coding-standards-draft.md
Created June 21, 2026 03:59 — forked from dmmulroy/coding-standards-draft.md
coding-standards-draft.md

TypeScript Coding Standards

These standards describe how to design and write TypeScript code in this codebase. They are especially intended for agents: before adding patterns, libraries, adapters, or abstractions, read the existing code and prefer the local convention unless it conflicts with the safety/correctness principles below.

Decision priority

When rules pull in different directions, use this order:

  1. Preserve correctness, safety, and debuggability.
  2. Follow established project architecture and conventions.
"""
NOTE: make sure to install:
pip install Pillow google-genai loguru
"""
from google import genai
from google.genai import types
from PIL import Image
from io import BytesIO
import os
@pyoner
pyoner / machine.js
Last active October 8, 2020 06:16
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pyoner
pyoner / machine.js
Last active October 16, 2021 12:34
Generated by XState Viz: https://xstate.js.org/viz
// Project: Gtab
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pyoner
pyoner / machine.js
Last active October 16, 2021 12:35
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pyoner
pyoner / machine.js
Last active December 27, 2019 05:28
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pyoner
pyoner / machine.js
Created December 9, 2019 15:24
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@pyoner
pyoner / machine.js
Last active October 16, 2021 12:30
Generated by XState Viz: https://xstate.js.org/viz
/*
interface Event {
type: string
executor: 'client' | 'provider' | 'admin' | 'validator'
sender: 'admin' | 'client' | 'provider'
}
**/
const guards = {
// executors
@pyoner
pyoner / SketchSystems.spec
Last active December 8, 2019 04:27
Job State Sketch
Job State Sketch
Init
client draft -> Draft
client publish -> AcceptingOffers
Draft
client close -> Closed
client publish -> AcceptingOffers
AcceptingOffers
@pyoner
pyoner / machine.js
Created December 4, 2019 04:20
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions