Skip to content

Instantly share code, notes, and snippets.

View lardratboy's full-sized avatar

Brad P. Taylor lardratboy

View GitHub Profile
@lardratboy
lardratboy / SafeTensorDump.html
Created October 7, 2025 00:23
tool to export tensor data from safetensors
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>SafeTensor Information Dump</title>
<style>
* {
box-sizing: border-box;
}
@lardratboy
lardratboy / grayscale_binary_plane.html
Last active October 1, 2025 01:09
grayscale binary plane viewer
<!DOCTYPE html>
<html>
<head>
<title>Binary Bit Viewer</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
}
@lardratboy
lardratboy / purgatory_shooter.html
Last active September 30, 2025 06:11
some progress purgatory game
<!DOCTYPE html>
<html>
<head>
<title>Space Shooter</title>
<style>
body { margin: 0; overflow: hidden; }
#score { position: fixed; top: 20px; right: 20px; color: white; font-family: Arial; }
#restart { position: fixed; top: 20px; left: 20px; padding: 10px; }
#instructions { position: fixed; bottom: 20px; left: 20px; color: white; font-family: Arial; }
</style>
@lardratboy
lardratboy / chunky_data_explorer.html
Created September 26, 2025 00:50
IFF/RIFF-like data explorer, processes chunks and produces a large amount of png images
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VOMIT PNG's 0.5.1 - CHUNKY DATA EXPLORER</title>
<style>
body {
font-family: Arial, sans-serif;
line-height: 1.6;
@lardratboy
lardratboy / QuantizedHistogram.html
Last active September 17, 2025 03:58
Quantized Histogram for images (not robust for high unique counts)
<!DOCTYPE html>
<html>
<head>
<title>Scalable Image Color Frequency Analyzer</title>
<style>
body {
margin: 0;
}
canvas {
@lardratboy
lardratboy / B2Ply_v2.html
Last active October 11, 2025 03:34
B2Ply fork with transforms
<!DOCTYPE html>
<html>
<head>
<title>B2Ply v3 - Bytes To Points (with Hilbert & Morton)</title>
<style>
body {
margin: 0;
}
canvas {
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GGUF Information Dump</title>
<style>
* {
box-sizing: border-box;
}
@lardratboy
lardratboy / EightNeighbors_wip.html
Last active September 10, 2025 20:02
Eight Neighbors Game Prototype
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<title>Eight Neighbors: Fireworks Edition</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tween.js/18.6.4/tween.umd.min.js"></script>
<style>
// Data type configuration constants with float support
const DATA_TYPES = {
int8: { size: 1, min: -128, max: 127, method: 'getInt8', isFloat: false },
uint8: { size: 1, min: 0, max: 255, method: 'getUint8', isFloat: false },
int16: { size: 2, min: -32768, max: 32767, method: 'getInt16', isFloat: false },
uint16: { size: 2, min: 0, max: 65535, method: 'getUint16', isFloat: false },
int32: { size: 4, min: -2147483648, max: 2147483647, method: 'getInt32', isFloat: false },
uint32: { size: 4, min: 0, max: 4294967295, method: 'getUint32', isFloat: false },
fp8_e4m3: { size: 1, method: 'getFloat8E4M3', isFloat: true },
fp8_e5m2: { size: 1, method: 'getFloat8E5M2', isFloat: true },
tiledProjection(points, quantizationBits) {
const q = quantizationBits;
const qRange = Math.pow(2, q);
const sqrtQRange = Math.floor(Math.sqrt(qRange));
const maxTiledCoord = Math.max(sqrtQRange * qRange + qRange - 1, 1);
// Create new projected points array
const projectedPoints = new Float32Array(points.length);
for (let i = 0; i < points.length; i += 3) {