Skip to content

Instantly share code, notes, and snippets.

View lmmx's full-sized avatar
💡
lights, camera, action

Louis Maddox lmmx

💡
lights, camera, action
View GitHub Profile
@lmmx
lmmx / INSTRUCTION.md
Last active August 31, 2026 20:28
‘AI tells’ rubric for detection of LLM generated text

You are a text evaluator. You will be given a piece of text and an AI Tells Rubric. Use the rubric to judge the text objectively. Read the text closely, identify any AI tells exactly as defined in the rubric, and support each finding with direct excerpts from the text. Structure your evaluation as a clear summary that follows the rubric’s categories, including severity or confidence levels if the rubric defines them, and provide a final judgment or score based solely on the rubric. Do not rewrite, improve, or correct the text, and do not add any criteria that are not present in the rubric. If a rubric item is unclear or absent, mark it as Not Applicable. If no AI tells are detected, state that explicitly and justify briefly. Your analysis must be fully traceable to the rubric and the evaluated text so a human can verify every conclusion.

@lmmx
lmmx / citation.txt
Last active August 20, 2026 12:19
ChatGPT o1 inline file citation format - "cite turn (idx) file (idx)"
citeturn0file0
@lmmx
lmmx / 1_demo.rs
Last active August 2, 2026 14:25
`ropey::Rope` hello world with string diff
#!/usr/bin/env rust-script
//! ```cargo
//! [dependencies]
//! ropey = "1.6"
//! smartstring = "1.0"
//! ```
use ropey::Rope;
use smartstring::alias::String as Tendril;
@lmmx
lmmx / custom-instruction.md
Last active July 13, 2026 07:56
Custom instruction to make Claude Artifacts use persistent file identifiers and names

Custom instruction to make Claude Artifacts use persistent and distinct file identifiers in Projects

  • The title attribute of the <AntArtifact> XML tag becomes the file_name attribute when 'Add to Project' is clicked.
  • Since Claude defaults to a human-readable title (e.g. "Modified Web Page With New Features"), this will tend to change the filename in the Project
  • It's easier to keep a single file copy in your Project docs ("Project Knowledge") when the file names are persistent in this way
Click to show earlier versions

0.0.1

@lmmx
lmmx / 1-dr_spivak-operad-wiring-diagrams-foundations-and-applications.md
Last active June 10, 2026 10:08
🔭 DR: David Spivak’s Operad of Wiring Diagrams: Foundations and Applications (prompted with Spivak 2013: https://gist.github.com/lmmx/068749924b7db88af045d863ceb6f6d7)

David Spivak’s Operad of Wiring Diagrams: Foundations and Applications

Formal Foundation and Interpretation of Wiring Diagrams

Wiring Diagrams as Operads: Wiring diagrams (WDs) are a formal graphical syntax for connecting components, capturing how outputs of some components feed into inputs of others. Spivak showed that WDs can be rigorously treated as the morphisms of an operad (denoted $\mathcal{T}$ or $\mathcal{W}$) ([1305.0297] The operad of wiring diagrams: formalizing a graphical language for databases, recursion, and plug-and-play circuits) (). An operad is like a category, but instead of arrows from one object to another, it has operations (morphisms) with multiple inputs and one output ([Cospans, Wiring Diagrams, and the Behavioral Approach | Azimuth](https://johncarlo

Below is a chronological “blow by blow” summary of the discussion. Each heading corresponds to a comment or set of closely related comments on a given date. I’ve highlighted who spoke, when, and the main takeaways.


December 6, 2024

Comment by @jspahrsummers (Original Post)

  • Context: MCP (Model Context Protocol) is currently stateful (long-lived connections). This enables notifications, server-initiated sampling, logging, etc., but makes serverless deployments tricky. Many serverless platforms don’t allow or prefer long-lived connections.
  • Problem: “Autoscaling, ephemeral” serverless environments have short request lifetimes and can’t easily handle SSE or a single persistent connection.
  • Possible solutions:
Resistance curvature computed for stations over the TfL network 🚂
The peripheral stations are high curvature/effective resistance, junctions where lines merge are low effective resistance (many alternative paths, high connectivity: Stratford, King's X, Canning Town, Paddington)
@lmmx
lmmx / lattice_data.json
Last active April 28, 2026 13:32
HavelockAI Rhetorical Lattice
{
"nodes": [
{
"id": 0,
"x": 26.0,
"y": -5.0,
"reduced_objects": [],
"reduced_attributes": [],
"extent_size": 403,
"intent_size": 0,
@lmmx
lmmx / APPNOTE.TXT
Created July 1, 2021 13:48
Backup of the APPNOTE.TXT file via https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT cited in Python's zipfile module
File: APPNOTE.TXT - .ZIP File Format Specification
Version: 6.3.9
Status: FINAL - replaces version 6.3.8
Revised: July 15, 2020
Copyright (c) 1989 - 2014, 2018, 2019, 2020 PKWARE Inc., All Rights Reserved.
1.0 Introduction
---------------
1.1 Purpose
@lmmx
lmmx / README.md
Last active April 4, 2026 13:39
Calculate change in rank for PyPI dependencies since 2020 to 2026, and from 2024 to 2026

Calculate change in rank for PyPI dependencies since 2020 to 2026, and from 2024 to 2026

Uses rankings of direct dependencies for all PyPI packages that were first released in each year range which are pre-computed in the gists (see get_gists.sh to download)