Skip to content

Instantly share code, notes, and snippets.

{
"user_id": "ce34953c40f3bc931bbf9b76a0f48e35f6337651",
"email": "matt+test+student@coast.ai",
"email_verified": true,
"nickname": "Test name",
"first_name": "John",
"last_name": "Smith",
"is_coastline_user": true,
"courses": [
"ca_traffic_school"
@leonsomed
leonsomed / validator.js
Created August 8, 2026 01:06
Experimental BIP39 12th word checksum generator
const crypto = require("crypto");
const wordList = [
"abandon",
"ability",
"able",
"about",
"above",
"absent",
"absorb",
@leonsomed
leonsomed / gist:0394c3be1f0aa567b2dfbc242f358753
Created August 19, 2026 23:00
Compute bitcoin stats like inflation, issued coins, rewards, and approximate halving date
function computeBitcoinStats() {
const formatterNumer = new Intl.NumberFormat("en-US", {});
const formatterPercent = new Intl.NumberFormat("en-US", {
maximumFractionDigits: 4,
});
const formatterDate = new Intl.DateTimeFormat("en-US", {
month: "long",
year: "numeric",
});
let height = 0;