Skip to content

Instantly share code, notes, and snippets.

View richardgill's full-sized avatar

Richard Gill richardgill

View GitHub Profile
@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 / opentui-keymap-delta.md
Last active January 15, 2026 11:00
OpenTUI keymap coverage vs pi

Missing In pi (present in OpenTUI)

@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 / 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.

// Immediately-invoked function expression
"use strict";
var duration = /(-?(?:\d+\.?\d*|\d*\.?\d+)(?:e[-+]?\d+)?)\s*([a-zµμ]*)/gi;
/**
* conversion ratios
*/
@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"'
@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.

Provisioning profiles have a certificate.

When using fastlane match development or fastlane match appstore you might want to pass comma seperated app identifiers (bundle ids) into the command. This will generate N provisioning profiles attached to one certificate for each command you run.

There is a limit per itunes connect account on the number of certificates. (We think the limit is for the same certificate type with the same name).

@richardgill
richardgill / tinkering.md
Last active September 12, 2017 12:55
ZDEV Tinkerers

ZDEV Tinkerers

Rich

  • Used a firewall program (ZoneAlarm Pro) to 'Bridge' on Halo 2. So that my friends and I could pwn people playing in the US (who always got host otherwise)
  • Fixed ALOT of computers, built computers, installed operating systems from scratch.
  • Once broke my parent's 486 (which cost a lot of money!) so that it would only boot up into DOS and start a game - My Dad was not impressed.

John

@richardgill
richardgill / example.md
Created August 25, 2017 10:29
Event propogation example
<div id=1 onClick=(e) => {
  console.log(1)
}>
  <div id=2 onClick=(e) => {
    console.log(2)
  }>
   2
  </div>
 1