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:
| import { afterEach, describe, expect, test } from "bun:test"; | |
| import { mkdtemp, readFile, rm, writeFile } from "node:fs/promises"; | |
| import { tmpdir } from "node:os"; | |
| import { join } from "node:path"; | |
| import { | |
| buildImageRequest, | |
| codexBaseUrl, | |
| IMAGE_DIR, | |
| imageEndpoint, | |
| parseImageResponse, |
| import { getLanguageFromPath, highlightCode, type ExtensionAPI, type ExtensionContext } from "@earendil-works/pi-coding-agent"; | |
| import { readFile } from "node:fs/promises"; | |
| import { resolve } from "node:path"; | |
| const REVIEW_TOOLS = new Set(["bash", "write", "edit"]); | |
| const CUSTOM_TYPE = "review-state"; | |
| const PREVIEW_LIMIT = 6000; | |
| const BLOCK_LIMIT = 1200; | |
| const MAX_DIFF_LINES = 160; | |
| const MAX_DIFF_INPUT_LINES = 400; |
| { | |
| "providers": { | |
| "makora": { | |
| "baseUrl": "https://inference.makora.com/v1", | |
| "api": "openai-completions", | |
| "apiKey": "$MAKORA_OPTIMIZE_TOKEN", | |
| "compat": { | |
| "supportsDeveloperRole": false, | |
| "supportsStore": false, | |
| "maxTokensField": "max_completion_tokens" |
| # 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> |