Skip to content

Instantly share code, notes, and snippets.

View Whamp's full-sized avatar

Will Hampson Whamp

View GitHub Profile
@Whamp
Whamp / coding-standards-draft.md
Created June 19, 2026 00:36 — forked from dmmulroy/coding-standards-draft.md
coding-standards-draft.md

TypeScript Coding Standards

These standards describe how to design and write TypeScript code in this codebase. They are especially intended for agents: before adding patterns, libraries, adapters, or abstractions, read the existing code and prefer the local convention unless it conflicts with the safety/correctness principles below.

Decision priority

When rules pull in different directions, use this order:

  1. Preserve correctness, safety, and debuggability.
  2. Follow established project architecture and conventions.
@Whamp
Whamp / README.md
Last active June 3, 2026 23:36
Minimal WebGL generateMipmap atlas repro for xterm.js PR 5987

WebGL generateMipmap atlas repro

Minimal standalone repro harness for the xterm.js glyph-atlas mipmap issue fixed in xtermjs/xterm.js#5987.

It does not import xterm.js. It creates separate canvases for WebGL2 and WebGL1 so the two context checks do not interfere with each other.

  1. creates a 512x512 canvas-backed RGBA texture, matching the glyph atlas shape;
  2. draws dense terminal-like monospace glyph/color churn into that atlas canvas;
  3. uploads it with gl.texImage2D(..., atlasCanvas);
  4. calls gl.generateMipmap(gl.TEXTURE_2D);
@Whamp
Whamp / imagewoof-train-LearnedRelu-size192.ipynb
Created April 26, 2019 02:38
Imagewoof Training with Learned ReLU size 192
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Whamp
Whamp / imagewoof-train-LearnedRelu.ipynb
Created April 26, 2019 01:19
Imagewoof Training with LearnedReLU
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Whamp
Whamp / environment.yml
Created April 16, 2019 16:59
Conda Environment for Nupic
name: nupic
channels:
- anaconda
- conda-forge
dependencies:
- python = 2.7
- pip
- setuptools
- wheel
- numpy = 1.12.1
@Whamp
Whamp / 09_kalman_optimizers.ipynb
Created April 13, 2019 23:40
Optimizer Idea: Replace EWMA with Kalman Filter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Whamp
Whamp / Time series - Olive oil country of origin.ipynb
Created March 12, 2019 04:15 — forked from oguiza/Time series - Olive oil country of origin.ipynb
course-v3/nbs/dl1/Time series - Olive oil country of origin.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Whamp
Whamp / Tabular .to_df() Throws Error.ipynb
Created November 30, 2018 20:13
Tabular .to_df() Throws Error
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.