Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
</head>
<body>
<img
src="image-thunk.webp"
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
class DeferredPromise extends Promise {
static get [Symbol.species]() {
return Promise;
}
constructor() {
@joaquin-rossi
joaquin-rossi / copy_fail.py
Created May 1, 2026 12:37
Unminified copy.fail
#!/usr/bin/env python3
import os
import socket
import sys
import zlib
def c(fd: int, i: int, p: bytes) -> None:
a = socket.socket(socket.AF_ALG, socket.SOCK_SEQPACKET, 0)
a.bind(("aead", "authencesn(hmac(sha256),cbc(aes))"))
h = 279
#pragma once
#include <stdlib.h>
extern const size_t embed_data_txt_size;
extern const char embed_data_txt[];
import module java.base;
/*
* long fibonacci(int n) {
* return fibonacciTrampoline(0, 1, n).eval();
* }
*
* Trampoline<Long> fibonacciTrampoline(long a, long b, int count) {
* return count == 0
* ? new Trampoline.Done(a)
Node.prototype.queryXPath = function(xpath) {
return document
.evaluate(xpath, this, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null)
.singleNodeValue;
}
Node.prototype.queryXPathAll = function(xpath) {
const result = document.evaluate(xpath, this, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
const nodes = [];
#!/usr/bin/env python
from openai import OpenAI
import pydantic
class VibesortResponse(pydantic.BaseModel):
nums: list[float]
def vibesort(l: list[float]) -> list[float]:
response = OpenAI().responses.parse(
model="gpt-5-nano",
#include <stdio.h>
int main() {
int n = 3;
int m = 3;
for (
int i = 0, j = 0 ;
i < n && j < m ;
j = (j + 1) % m, i += (j == 0 ? 1 : 0)
CREATE FUNCTION unique_agg_state(state anyelement, value anyelement) RETURNS anyelement
LANGUAGE plpgsql
AS
$$
BEGIN
IF state IS NULL THEN
RETURN value;
ELSIF state <> value THEN
RAISE EXCEPTION 'Mismatched values in group: % <> %', state, value;
END IF;
<!DOCTYPE html>
<html>
<head>
<title>Release vs. Press</title>
</head>
<body>
<p class="release"></p>
<button class="release" style="padding: 1rem">Act on Release</button>
<p class="press"></p>
<button class="press" style="padding: 1rem">Act on Press</button>