Skip to content

Instantly share code, notes, and snippets.

@webcane
webcane / Orthon Design Principles.md
Last active July 15, 2026 07:24
Orthon Language Design Principles

Language Design Principles

Design Principles
├── Orthogonality
├── Simplicity
├── Explicitness
├── Consistency
└── Documentation Principles
 ├── Show All Canonical Forms
@webcane
webcane / Orthon Manifesto.md
Last active July 13, 2026 18:45
Orthon Manifesto

Orthon Manifesto

Introduction

Orthon is built on the belief that a programming language should be small in its core, consistent in its rules, and extensible by design. The language favors orthogonality over historical compatibility and composition over special cases.

Manifesto

Consistency over historical compatibility

The language evolves as a coherent system, not as an accumulation of legacy decisions.

@webcane
webcane / llm-wiki.md
Last active July 7, 2026 11:00 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Knowledge Compiler

A pattern for building persistent knowledge bases using LLMs.

This is an idea file, designed to be copied into your own LLM agent (OpenAI Codex, Claude Code, OpenCode, Pi, etc.). Its purpose is to communicate the architecture, while leaving implementation details to the agent and the user.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM rediscovers knowledge from scratch on every question. Nothing accumulates.

@webcane
webcane / Data-uri-converter.markdown
Created April 28, 2014 07:19
A Pen by Moncho Varela.
@webcane
webcane / fence-animation.markdown
Created March 14, 2014 18:15
A Pen by Mikhail Niedre.
<!doctype html>
<html>
<head>
<!-- Run in full-screen mode. -->
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- Make the status bar black with white text. -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">
@webcane
webcane / Ribbon.markdown
Created March 5, 2014 05:18
A Pen by Justin Windle.
@webcane
webcane / gist:5320906
Last active December 15, 2015 20:48
EclipseEnumTest - Eclipse compile code but haven't
public class EnumTest {
enum Day {
// The constructor EnumTest3.Day(int) is undefined
Monday(1), Sunday(2)
};
public static void main(String[] args) {
Day d = null;
System.out.println(d.Monday);
}
@webcane
webcane / gist:5228133
Last active December 15, 2015 08:08
put random big letters into list
// put random big letters into list
private static final void fillList(List<String> l, int size){
Random r = new Random();
for (int i = 0; i < size; i++) {
int ascii = 65 + r.nextInt(26); // 65-A .. 90-Z
String letter = new Character((char)ascii).toString();
l.add(letter);
}
}
@webcane
webcane / gist:5143471
Last active December 14, 2015 20:19
different ways to looping over ArrayList
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class Test {
public static void main(String[] args) {
List<String> list = new ArrayList<>();
list.add("http://stackoverflow.com");
list.add("http://github.com");