Skip to content

Instantly share code, notes, and snippets.

View ar1ja's full-sized avatar
🏳️‍⚧️

Arija A. (Ari Archer) (migrated to https://git.ari.lt/ari) ar1ja

🏳️‍⚧️
View GitHub Profile
@branneman
branneman / http-easy.rkt
Last active June 29, 2024 18:58
Racket: How to do HTTP requests
#lang racket/base
(require
net/http-easy)
(define (base-url path)
(string-append "https://httpbin.org" path))
; request: GET
; response: plain string body
@qexat
qexat / list.py
Last active December 25, 2025 16:11
functional programmers when they are forced to use python (they are crying and seething)
# ruff: noqa: D100, D103, A001, A002
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from collections.abc import Callable
type List[T] = tuple[()] | tuple[T, List[T]]