Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jondashkyle on github.
  • I am jkm (https://keybase.io/jkm) on keybase.
  • I have a public key ASDQ_bJp2caeHkpTuwoE9eZ5bdxr5cPkibnOHrl5VmBbQwo

To claim this, I am signing this object:

@jondashkyle
jondashkyle / machine.js
Last active February 5, 2021 20:25
Generated by XState Viz: https://xstate.js.org/viz
const onboardingMachineConfig = Machine(
{
key: 'onboarding',
initial: 'disconnected',
context: {
ensLabel: '',
walletAddress: '',
writeAmount: 0,
isTokenCanvasLoaded: false,
isENSAvailable: false,
@jondashkyle
jondashkyle / switch.js
Last active April 8, 2021 15:24
Switch it up
// Pseudo-code of a pattern I use frequently.
const theTitle = 'Seeing is forgetting the name of the thing one sees'
const isActive = true
const duration = 420
switch (true) {
case !!theTitle:
return 'Has a title!'
case isActive && duration > 300:
@jondashkyle
jondashkyle / plan.md
Created July 28, 2025 21:13
media plan

Image Upload Feature Implementation Plan

Overview

This plan outlines the implementation of a comprehensive image upload feature for Assemblage, enabling users to upload images directly to blocks and access them via a clean API pattern like content.media[0].src. The feature will integrate with the existing block system and use Supabase for backend storage metadata and S3 for actual file storage.

Goals

  1. Enable direct image uploads within block elements
  2. Support multiple media items per block via content.media array