Skip to content

Instantly share code, notes, and snippets.

@hansonw
hansonw / codex_gpt2_codegolf.html
Last active March 6, 2026 23:25
Codex solution to gpt2-codegolf
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>codex_gpt2_codegolf.jsonl - Codex Session</title>
<style>
:root {
--bg: #ffffff;
--panel: #ffffff;
@hansonw
hansonw / codex-gpt2-codegolf.c
Last active March 6, 2026 17:12
Solution to gpt2-codegolf (from Terminal-Bench 2) generated by gpt-5.4 (xhigh) in 4972 characters
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#include<sys/mman.h>
#include<sys/stat.h>
#include<fcntl.h>
#include<unistd.h>
#define N 768
#define V 50257
@hansonw
hansonw / debounce_benchmark.js
Last active January 24, 2019 18:37
Benchmark of rxjs debounceTime vs lodash debounce
const debounce = require('lodash/debounce');
const {Observable} = require('rxjs');
let next;
const observable = Observable.create(observer => {
next = observer.next.bind(observer);
});
let counter = 0;
for (let i = 0; i < 10; i++) {

Keybase proof

I hereby claim:

  • I am hansonw on github.
  • I am hansonw (https://keybase.io/hansonw) on keybase.
  • I have a public key whose fingerprint is 4219 2107 4731 FDAC 6204 2ADC 4D11 CA35 B80F EC37

To claim this, I am signing this object: