Skip to content

Instantly share code, notes, and snippets.

View ajcwebdev's full-sized avatar

Anthony Campolo ajcwebdev

View GitHub Profile
@ajcwebdev
ajcwebdev / index.md
Last active May 1, 2024 18:09
IPFS and Dash

walker — 04/01/2024

Using Dash platform as a CID repository is one use case, but much different from hosting your whole front-end over IPFS.

  • The latter situation assumes you have an application in the first place.
  • It is a second-phase type of a problem, and likely premature optimization, unless the trust-less-ness is truly a requirement (or at minimum a significant selling point) for the app to exist at all.

Demo idea

create the minimal html+javascript (aka "the wrapper)

@ajcwebdev
ajcwebdev / index.md
Created April 8, 2024 16:56
Nick Taylor | AI Frontends

Create Project

Create a LlamaIndex.TS project.

Load Data

Download previous show descriptions.

curl "https://ajc.pics/nickyt.pdf" > nickyt.pdf
@ajcwebdev
ajcwebdev / index.md
Last active October 13, 2023 04:00
Transformer decoding in fifty lines of pseudocode

From the paper Transformer decoding in fifty lines of pseudocode by Bob Carpenter at the Flatiron Institute. I copied it by hand and it almost certainly has a mistake or two in it.

DECODE(tok: int<lower=1, upper=T>[N],
    alpha: matrix(T, V),
    betas: { query: matrix(V, K),
        key: matrix(V, K),
        value: matrix(V, V) }[A],
    gammas: { 1: vector(L), 2: matrix(L, V),
              3: vector(V), 4: matrix(V, L) }[A],