Skip to content

Instantly share code, notes, and snippets.

-------------------------------------------+------------+--+-
Rank Score True Card
---- ----- ----- ----
1 66.7 67.1 Tundra
2 66.6 67.1 Savannah
3 66.6 67.1 Underground Sea
4 66.6 67.1 Plateau
5 66.5 67.1 Volcanic Island
6 66.5 67.1 Tropical Island
7 66.5 67.1 Scrubland
Scored 803 cards
Validation against card_tiers.toml (620 labeled cards):
Spearman rho: 0.461 (p=6.32e-34)
MAE vs tier scores: 18.8 points
Bottom-25% agreement: 62.6%
Bottom-50% agreement: 67.1%
Biggest misranks (top 10):
Card Computed Tier Diff Tier label
~/src/rc-lol (main)
><> git remote add reforge git@git.recurse.world:rclol
git push -u reforge main
~ welcome to reforge ~
Open this URL in your browser to authenticate:
https://reforge.recurse.world/auth/device?s=019d879a-b961-73f0-a9c6-fc610132e8ae
@benprew
benprew / rclol.org
Last active April 12, 2026 13:19
A custom search engine to quickly access Recurse resources - design doc
#!/bin/bash
# export NODE_PATH=$HOME/node_modules
# Check if we're in a git worktree and need to bind the main .git directory
EXTRA_BINDS=""
if [ -f .git ]; then
# This is a worktree - .git is a file pointing to the main repo
# Extract the gitdir path from the .git file
GITDIR=$(grep "gitdir:" .git | cut -d' ' -f2)
@benprew
benprew / voter.py
Last active January 11, 2026 02:07
#!/usr/bin/env python3
import csv
import sys
from typing import List, Dict
def main():
file_path = sys.argv[1]
candidates, votes = votes_from_csv(file_path)
// returns a list of integer factors sorted descending, since we don't care about pairs.
func maximalProperDivisors(n int) (divisors []int) {
primes := constructPrimes(int(math.Sqrt(float64(n))))
for _, p := range primeFactors(n, primes) {
divisors = append(divisors, n/p)
}
return divisors
}
// find prime numbers up to SQRT of N
#!/usr/bin/env python3
from http.server import BaseHTTPRequestHandler, HTTPServer
from urllib.parse import urlparse, parse_qs
DB = {}
class KeyValueHandler(BaseHTTPRequestHandler):
def send_404(self, message=b'ERROR: Unknown endpoint\n'):
self.send_response(404)
self.send_header('Content-type', 'text/plain')
@benprew
benprew / bfc.sh
Created August 6, 2021 06:01
bodyfat calculator
#!/bin/bash
height=$1
neck=$2
abdomen=$3
if [[ -z $height || -z $neck || -z $abdomen ]]; then
echo "$0 - calculate your bodyfat using the US Navy method"
echo "Usage: $0 <height> <neck> <abdomen>"
echo " height - height (in inches)"

How I setup my worktrees:

$ ll ~/work/analytical-solutions-trees drwxrwsr-x 81 bprew rtk 8.0K Nov 15 17:36 faster-rap-tags drwxrwxr-x 82 bprew rtk 8.0K Sep 11 22:27 master drwxrwsr-x 81 bprew rtk 8.0K Nov 13 16:20 migrate-as-linear-to-vpc

Adding a new worktree:

I have a git script named "start" that I use when I want to add a new worktree