Skip to content

Instantly share code, notes, and snippets.

View Whizboy-Arnold's full-sized avatar

Warren Arnold Whizboy-Arnold

View GitHub Profile
@Whizboy-Arnold
Whizboy-Arnold / microgpt.cu
Created June 17, 2026 22:24 — forked from lexpank/microgpt.cu
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>
@Whizboy-Arnold
Whizboy-Arnold / neoleo.c
Created June 17, 2026 22:22 — forked from ariannamethod/neoleo.c
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
*/
#!/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')
@Whizboy-Arnold
Whizboy-Arnold / postgpt.c
Created June 17, 2026 21:49 — forked from ariannamethod/postgpt.c
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
*
"""
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
@Whizboy-Arnold
Whizboy-Arnold / batch_reconstruct.bat
Created November 3, 2025 11:38 — forked from polyfjord/batch_reconstruct.bat
Batch script for automated photogrammetry tracking workflow
:: ================================================================
:: BATCH SCRIPT FOR AUTOMATED PHOTOGRAMMETRY TRACKING WORKFLOW
:: By polyfjord - https://youtube.com/polyfjord
:: ================================================================
:: USAGE
:: • Double-click this .bat or run it from a command prompt.
:: • Frames are extracted, features matched, and a sparse
:: reconstruction is produced automatically.
:: • Videos that have already been processed are skipped on
:: subsequent runs.
@Whizboy-Arnold
Whizboy-Arnold / getTextInRect.js
Created February 28, 2024 09:26 — forked from imesut/getTextInRect.js
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
@Whizboy-Arnold
Whizboy-Arnold / scientificToDecimal.js
Created January 18, 2021 15:20 — forked from jiggzson/scientificToDecimal.js
Converts a javascript number from scientific notation to a decimal string
var scientificToDecimal = function (num) {
var nsign = Math.sign(num);
//remove the sign
num = Math.abs(num);
//if the number is in scientific notation remove it
if (/\d+\.?\d*e[\+\-]*\d+/i.test(num)) {
var zero = '0',
parts = String(num).toLowerCase().split('e'), //split into coeff and exponent
e = parts.pop(), //store the exponential part
l = Math.abs(e), //get the number of zeros
@Whizboy-Arnold
Whizboy-Arnold / mysql_store_use_result_stmt_cursor.c
Created November 25, 2020 08:00 — forked from hoterran/mysql_store_use_result_stmt_cursor.c
mysql api example, include store_result, use_result, stmt, server cursor , fetch row setting
#include <stdio.h>
#include <mysql.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
int main (int argc, char *argv[]) {
MYSQL *mysql;
MYSQL_RES *result;
@Whizboy-Arnold
Whizboy-Arnold / mysql_store_use_result_stmt_cursor.c
Created November 25, 2020 08:00 — forked from hoterran/mysql_store_use_result_stmt_cursor.c
mysql api example, include store_result, use_result, stmt, server cursor , fetch row setting
#include <stdio.h>
#include <mysql.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
int main (int argc, char *argv[]) {
MYSQL *mysql;
MYSQL_RES *result;