Skip to content

Instantly share code, notes, and snippets.

View Whizboy-Arnold's full-sized avatar

Warren Arnold Whizboy-Arnold

View GitHub Profile
@ariannamethod
ariannamethod / postgpt.c
Last active June 17, 2026 21:49
PostGPT — a zero-dependency BPE transformer with metaweights. you can train it, but it doesn't care. resonance is unbreakable.
/*
* postgpt.c — zero-dependency BPE transformer with metaweights.
*
* C port of postgpt.py. Same algorithm, same resonance.
* Dual attention: Content (QK^T) + RRPRAM (x @ Wr).
* Metaweights: statistical probability space from BPE tokenization.
*
* Compile: gcc -O2 -o postgpt postgpt.c -lm
* Run: ./postgpt
*
@Chrisbryan17
Chrisbryan17 / microgpt.py
Last active June 17, 2026 22:21 — forked from karpathy/microgpt.py
microgpt
#!/usr/bin/env python3
"""
microgpt2.py
A dependency-free, single-file GPT-style language model in pure Python.
Key properties:
- stdlib only
- explicit forward/backward kernels (no generic scalar autograd)
- flat float32 parameter buffers using array('f')
@lexpank
lexpank / microgpt.cu
Created March 17, 2026 22:48
CUDA C microgpt
// Nobody asked for microgpt in CUDA C, which is exactly why it had to happen.
// It is no longer particularly micro.
// It is, however, stupidly fast.
#include <cuda_runtime.h>
#include <cublas_v2.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
@ariannamethod
ariannamethod / neoleo.c
Last active June 27, 2026 09:58
Leo 2.3 — 20,986 lines of C. The Dario Equation with positional Hebbian profile (36 learnable params). Six signals. Dual tokenizer (word + BPE). D.N.A. uses both. Inner world. One organism.
/*
* neoleo.c -- Language Emergent Organism (single-file edition)
*
* Complete autonomous digital organism in one C file.
* D.N.A. from mini-arianna. Arianna -> Leo. Mother -> Son.
*
* Build: cc neoleo.c -O2 -lm -lsqlite3 -lpthread -o neoleo
* Run: ./neoleo
*/
@karpathy
karpathy / microgpt.py
Last active August 18, 2026 06:12
microgpt
"""
The most atomic way to train and run inference for 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
#!/bin/bash
# Exit on error
set -e
# Log file
LOG_FILE="./versioned_vfox_install.log"
# Utils
print_loader() {
@Whizboy-Arnold
Whizboy-Arnold / index.html
Created November 26, 2024 19:54
Scroll-driven animated card stack with scroll snap events.
<main data-active-index="0" data-debug="false">
<div class="card-stack">
<div class="card"><img src="https://assets.codepen.io/215059/card-stack-demo-05.jpg" /></div>
<div class="card"><img src="https://assets.codepen.io/215059/card-stack-demo-04.jpg" /></div>
<div class="card"><img src="https://assets.codepen.io/215059/card-stack-demo-06.jpg" /></div>
<div class="card"><img src="https://assets.codepen.io/215059/card-stack-demo-07.jpg" /></div>
<div class="card"><img src="https://assets.codepen.io/215059/card-stack-demo-08.jpg" /></div>
</div>
<div class="scroller">
<div class="scroll-item"></div>
@imesut
imesut / getTextInRect.js
Created November 25, 2018 17:59
Get text in selected area by pdf.js with text layer rendering
// This method works only when pdf is rendered with Text Layer
// It compares particular text/word element coordinates with
// the rectangle's coordinates. If text/word coordinates is in
// the rectangle, text has got. And successing texts are similar.
// Check out text layer rendering option at the article below.
// https://www.sitepoint.com/custom-pdf-rendering/
function getTextInRect(pageNumber, Xi, Yi, Xl, Yl) { // modify pageNumber if required
// Get the page if page render method works like (page-1, page-2, ...)
// If not, modify according to
@levlaz
levlaz / font-awesome-and-laravel.md
Last active March 4, 2025 23:54
How To Use Font Awesome With Laravel

For some reason there is a whole thread on this seemingly simple tasks. In a bootstrapped Laravel 5.4 instance the following worked for me.

Install Font Awesome with NPM

npm install font-awesome

Import font-awesome in your app.scss file

@jiggzson
jiggzson / scientificToDecimal.js
Last active August 22, 2024 05:03
Converts a javascript number from scientific notation to a decimal string
/**
* Removes the minus sign from the beginning of the string
*
* @param str
* @returns an array with the first item as true if a minus
* was found and the string minus the minus sign.
*/
function stripSign(str) {
// Check if it has a minus sign
let hasMinus = str.charAt(0) === '-';