Skip to content

Instantly share code, notes, and snippets.

View lardratboy's full-sized avatar

Brad P. Taylor lardratboy

View GitHub Profile
@lardratboy
lardratboy / quantize10_DataAs.js
Created December 22, 2025 22:50
quantized integer point cloud helper
// Data type configuration constants
const DATA_TYPES = {
int8: { size: 1, min: -128, max: 127, method: 'getInt8' },
uint8: { size: 1, min: 0, max: 255, method: 'getUint8' },
int16: { size: 2, min: -32768, max: 32767, method: 'getInt16' },
uint16: { size: 2, min: 0, max: 65535, method: 'getUint16' },
int32: { size: 4, min: -2147483648, max: 2147483647, method: 'getInt32' },
uint32: { size: 4, min: 0, max: 4294967295, method: 'getUint32' }
};
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>🎰 LATTICE SLOTS</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;600&display=swap');
* { box-sizing: border-box; margin: 0; padding: 0; }
@lardratboy
lardratboy / boxed-in.html
Last active December 22, 2025 22:38
boxed in game
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>BOXED IN - Instanced & Pooled</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Exo+2:wght@300;600&display=swap');
* { box-sizing: border-box; }
@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 December 14, 2025 00:13
B2Ply fork with transforms
<!DOCTYPE html>
<html>
<head>
<title>B2Ply v4 - Bytes To Points (with PCA)</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;
}