I hereby claim:
- I am tripplyons on github.
- I am tripplyons (https://keybase.io/tripplyons) on keybase.
- I have a public key ASA5KtyJ1Fc2DNtvxpgYx3KDt-BNycFwToVVYted1zBm0Ao
To claim this, I am signing this object:
| # run with `uv run reprex.py` | |
| # /// script | |
| # requires-python = ">=3.10" | |
| # dependencies = ["numpy", "packaging", "safetensors", "torch"] | |
| # /// | |
| import json | |
| import subprocess | |
| from pathlib import Path |
| # https://www.gavalas.dev/blog/spigot-algorithms-for-pi-in-python/ | |
| def gospers_pi_unproven(): | |
| q,r,t,i = 1, 180, 60, 2 | |
| while True: | |
| u,y = 3*(3*i+1)*(3*i+2), (q*(27*i-12)+5*r)//(5*t) | |
| yield y | |
| q,r,t,i = 10*q*i*(2*i-1),10*u*(q*(5*i-2)+r-y*t),t*u,i+1 |
| mkdir -p config data | |
| cat > config/settings.yml << 'EOF' | |
| server: | |
| bind_address: "0.0.0.0" | |
| secret_key: "secret" | |
| search: | |
| formats: | |
| - html | |
| - json | |
| EOF |
| import jax | |
| import jax.numpy as jnp | |
| def associative_op(left, right): | |
| left_wab, left_vk = left | |
| right_wab, right_vk = right | |
| new_wab = jnp.matmul(left_wab, right_wab) | |
| new_vk = jnp.matmul(left_vk, right_wab) + right_vk | |
| return new_wab, new_vk |
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| import cv2 | |
| import numpy as np | |
| def main(): | |
| cap = cv2.VideoCapture(0) | |
| while(cap.isOpened()): | |
| ret, img = cap.read() | |
| skinMask = HSVBin(img) |
| <div id="card"></div> |
| start = exps:(expr+) { | |
| return exps.join('') | |
| } | |
| call = first:((func:function) / (identifier:id)) "(" exp:expr? ")" { | |
| return first + "(" + exp + ")" | |
| } | |
| id = chars:([a-zA-Z]+) { | |
| return chars.join('') | |
| } | |
| def = "#" identifier:id { |
| #ifdef GL_ES | |
| precision mediump float; | |
| #endif | |
| #extension GL_OES_standard_derivatives : enable | |
| uniform float time; | |
| uniform vec2 mouse; | |
| uniform vec2 resolution; |
| function hex (c) { | |
| var s = "0123456789abcdef"; | |
| var i = parseInt (c); | |
| if (i == 0 || isNaN (c)) | |
| return "00"; | |
| i = Math.round (Math.min (Math.max (0, i), 255)); | |
| return s.charAt ((i - i % 16) / 16) + s.charAt (i % 16); | |
| } | |
| /* Convert an RGB triplet to a hex string */ |