Skip to content

Instantly share code, notes, and snippets.

@aburjg
aburjg / microgpt.py
Created February 15, 2026 11:40 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@aburjg
aburjg / streaming-protocol.md
Created January 8, 2026 16:51
Streaming Protocol

Cycls Streaming Protocol cycls (0.0.2.64)

Documentation for backend and front-end teams on the /chat/cycls streaming protocol.


Backend Example

import cycls
@aburjg
aburjg / heap-lisp.c
Created October 6, 2025 14:17 — forked from swatson555/heap-lisp.c
Heap based scheme machine.
/* Heap based virtual machine described in section 3.4 of Three Implementation Models for Scheme, Dybvig
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
char token[128][32];
@aburjg
aburjg / readme-1.md
Last active August 1, 2024 19:02
Cycls page

Cycls Banner

Generate live apps from code in minutes with built-in memory,
rich hypermedia content, and cross-platform support

@aburjg
aburjg / homoiconic-python-post.md
Last active September 7, 2024 00:55
Homoiconic Python Post
@aburjg
aburjg / stock.py
Created February 10, 2024 14:37
stocks app
from quickchart import QuickChart
qc = QuickChart()
qc.width = 800
qc.height = 400
qc.version = '2'
def chart(x,y):
i = [str(i) for i in range(len(x))]
qc.config = f"""{{
@aburjg
aburjg / rawtrack.json
Created September 18, 2022 10:34
track
This file has been truncated, but you can view the full file.
@aburjg
aburjg / i
Created August 1, 2021 10:09
i1
1211
1698
1787
1947
1888
444
1819
1890
1940
1884