Skip to content

Instantly share code, notes, and snippets.

View ndbroadbent's full-sized avatar

Nathan Broadbent ndbroadbent

View GitHub Profile
@ndbroadbent
ndbroadbent / rangehood.yaml
Created September 6, 2022 23:51
Rangehood ESP32 Controller - ESPHome Configuration
esphome:
name: rangehood
includes:
- rangehood_button_leds.h
esp32:
board: nodemcu-32s
framework:
type: arduino
@ndbroadbent
ndbroadbent / personal-knowledge-graph.md
Created February 2, 2026 23:08
PRD: Personal Knowledge Graph with AI-Assisted Curation

PRD: Personal Knowledge Graph with AI-Assisted Curation

A guide for setting up a private semantic knowledge base with automated maintenance

Overview

This document describes how to build a personal knowledge graph using Wikibase, integrated with OpenClaw for AI-assisted curation. The system enables "write-ahead linking" where you casually reference topics in your notes/tasks, and automation handles entity creation, research, and quality assurance.

Target Audience: Another OpenClaw instance or technical user wanting to replicate this setup.

@ndbroadbent
ndbroadbent / antichrist.py
Last active January 14, 2026 05:28
Is Donald Trump the Antichrist? A Bayesian Analysis
# See: Could American Evangelicals Spot the Antichrist? Here Are the Biblical Predictions:
# https://www.benjaminlcorey.com/could-american-evangelicals-spot-the-antichrist-heres-the-biblical-predictions/
#
# Bayesian Analysis for All Prophesies
# -------------------------------------
# This script assumes that each prophecy provides independent evidence.
# For each prophecy, we define:
# - P_H: Probability of observing this evidence if Trump is the Antichrist.
# - P_notH: Probability of observing this evidence if Trump is NOT the Antichrist.
#
@ndbroadbent
ndbroadbent / gist:3030358
Created July 2, 2012 01:16
Tiny Umbrella Crash
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/sun/jna/Platform
at com.semaphore.os.UIHandlerManager.getSystemUIHandler(UIHandlerManager.java:22)
at com.semaphore.TinyUmbrella.<clinit>(TinyUmbrella.java:131)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.semaphore.TinyLoader.loadTiny(TinyLoader.java:248)
at com.semaphore.TinyLoader.access$000(TinyLoader.java:29)
at com.semaphore.TinyLoader$1.run(TinyLoader.java:42)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
@ndbroadbent
ndbroadbent / universal_causal_language.md
Last active November 4, 2025 11:40
Universal Causal Language (UCL)

Universal Causal Language (UCL)


1. Overview

The Universal Causal Language (UCL) is an experimental intermediate representation (IR) designed to express causality across all domains: natural language, programming, law, biology, and art. The language aims to unify all systems of meaning by reducing them to their causal primitives — actions that cause state changes.

UCL treats every statement, instruction, law, or behavior as a causal operation: a structured mapping from one state of the world to another. It can encode a function call in a programming language, a sentence in English, a legal contract, a musical score, or a DNA transcription event in the same underlying schema.

@ndbroadbent
ndbroadbent / rn-i18n-locale-identifiers.csv
Last active October 23, 2025 13:16 — forked from JaseHadd/ioslocaleidentifiers.csv
React Native i18n Locale Identifiers
Locale Identifier Description
af Afrikaans
af-NA Afrikaans (Namibia)
af-ZA Afrikaans (South Africa)
agq Aghem
agq-CM Aghem (Cameroon)
ak Akan
ak-GH Akan (Ghana)
am Amharic
am-ET Amharic (Ethiopia)
@ndbroadbent
ndbroadbent / CLAUDE.md
Last active October 12, 2025 03:14
Global CLAUDE.md

Global Claude Code Development Standards

This file contains universal development principles and standards that apply across ALL projects. Individual projects may have their own CLAUDE.md or AGENTS.md files with project-specific details - always read those when working in a specific codebase.


🚨 CRITICAL: NEVER BE LAZY - NO SHORTCUTS EVER

THERE IS NO RUSH. There are NO DEADLINES. There is NEVER any need to hurry.

@ndbroadbent
ndbroadbent / deploy_requests.sql
Created September 23, 2025 13:04
deploy_requests.sql
-- enums
create type deploy_request_status as enum ('pending','approved','rejected');
-- table
create table deploy_requests (
id BIGSERIAL PRIMARY KEY,
-- who/what asked for approval (exactly one)
created_by_user_id BIGINT REFERENCES users(id) ON DELETE SET NULL,
created_by_token_id BIGINT REFERENCES api_tokens(id) ON DELETE SET NULL,
@ndbroadbent
ndbroadbent / scalar-starlight-theme.css
Created August 3, 2025 09:54
Embed Scalar API Reference on a Starlight docs page
/* Scalar sidebar theme to match Starlight */
/* Set Scalar sidebar width to match Starlight
There's a 1px difference for some reason. */
.scalar-api-reference {
--scalar-sidebar-width: calc(var(--sl-sidebar-width) - 1px);
}
/* Set font family to use Inter from Fontsource */
.scalar-api-reference {
@ndbroadbent
ndbroadbent / gist:7575592
Last active January 30, 2025 18:10
SCM Breeze git aliases
GFORCE => git add -A && git commit --amend -C HEAD && git push -f
c => git_index
cbg => git rev-parse --verify HEAD | simple_clipboard
g => git
ga => git_add_shortcuts
gaa => git add -A
gap => git add -p
gash => git stash
gasha => git stash apply
gashl => git stash list