Skip to content

Instantly share code, notes, and snippets.

View richardgill's full-sized avatar

Richard Gill richardgill

View GitHub Profile
@richardgill
richardgill / shouldIPutItInRedux.md
Created December 7, 2017 11:41
Should I put it in Redux?

Should I put it in Redux?

Probably.

Exceptions

1. You want to reuse a component. Put it in multiple projects / put it in NPM.

You don't really want to force other people projects to use redux / setup loads of redux stuff in this case.

@richardgill
richardgill / bashrc.sh
Created January 1, 2019 18:12
Rich's Bash Profile Tips
export PS1="\[\e[30;1m\w\[\e[0m\]\$(git-radar --bash --fetch)\n$ "
alias githubdiff='open "https://github.$(git config remote.origin.url | cut -f2 -d.)/compare/$(git rev-parse --abbrev-ref HEAD)?expand=1"'
alias bitbucketdiff='open "$(git config remote.origin.url)/pull-requests/new#diff"'
// Immediately-invoked function expression
"use strict";
var duration = /(-?(?:\d+\.?\d*|\d*\.?\d+)(?:e[-+]?\d+)?)\s*([a-zµμ]*)/gi;
/**
* conversion ratios
*/
@richardgill
richardgill / microCovidFeedback.md
Last active September 13, 2020 20:42
Micro Covid

Hi Micro Covid team!

First of all - let me say that I think Micro Covid is amazing and your work is fantastic!

I helped build a similar tool https://shouldigooutnow.com/, which is a little bit simpler than Micro Covid. We built it over the last couple of weeks without any knowledge that Micro Covid existed. So, reading your whitepaper and looking at the code has been really interesting. You might find it interesting to read about our methodology - we've done a few things differently.

Our code is open source, here is our core risk model, we've tried to keep it as short and clear as possible.

@richardgill
richardgill / models.md
Created January 14, 2026 11:56
pi-models

Models

Tier Model SWE-bench Input $/1M Output $/1M
SMART (Flagship) Opus 4.5 80.9% ✓ $5.00 $25.00
GPT-5.2-codex 80.0% ✓ $1.75 $14.00
Gemini 3 Pro 76.2% ✓ $2.00 $12.00
Grok 4 unverified $3.00 $15.00
WORKHORSE (Balanced) Gemini 3 Flash 78.0% ✓ $0.50 $3.00
GPT-5.1-codex-max 77.9% ✓ $1.25 $10.00
@richardgill
richardgill / opentui-keymap-delta.md
Last active January 15, 2026 11:00
OpenTUI keymap coverage vs pi

Missing In pi (present in OpenTUI)

@richardgill
richardgill / thinking.md
Created January 15, 2026 16:57
Thinking about pi-mono terminal key handling changes

Thinking about the key-handling changes (plain-English)

Mental model (so the rest makes sense)

A terminal app doesn’t get “keys”, it gets bytes.

  • Normal characters like a arrive as the literal byte for a.
  • Special keys (arrows, Home/End, function keys, etc.) usually arrive as escape sequences: short strings that start with the ESC character (\x1b).
    • In cat -v, ESC shows up as ^[.
  • So ^[OH means the three bytes: ESC then O then H.
@richardgill
richardgill / GFTE01-Mario-Golf-Toadstool-Tour-Gecko-Codes.md
Last active June 1, 2026 14:02
Mario Golf: Toadstool Tour (GFTE01) Dolphin Gecko codes: airborne speedup and widescreen instructions

Mario Golf: Toadstool Tour (USA) — GFTE01 Dolphin Gecko codes

Search terms: Mario Golf: Toadstool Tour, GFTE01, Dolphin, Gecko, widescreen, Airborne Speedup While Holding A.

Target game:

Mario Golf: Toadstool Tour (USA)
Game ID: GFTE01
Platform: GameCube