Skip to content

Instantly share code, notes, and snippets.

View double-beep's full-sized avatar
🏠
Working from home

double beep double-beep

🏠
Working from home
View GitHub Profile
@double-beep
double-beep / old_suggested_edits.js
Created May 28, 2023 11:10
Fetches old suggested edits
const textify = id => `https://stackoverflow.com/suggested-edits/${id}`;
const url = new URL('https://api.stackexchange.com/2.3/suggested-edits');
const params = {
key: 'U4DMV*8nvpm3EOpvf69Rxw((', // SE key
site: 'stackoverflow',
pagesize: '100',
order: 'desc',
sort: 'creation',
filter: '!b)GQTHKTSeuf2h'
@double-beep
double-beep / castling-out.pgn
Last active September 18, 2023 14:10
Games where 0-0 was played with e, g pawns unmoved
[Event "Zonal Vilnius"]
[Site "Vilnius"]
[Date "1975.08.??"]
[Round "9"]
[White "Bronstein, David Ionovich"]
[Black "Vasiukov, Evgeni"]
[Result "1/2-1/2"]
[ECO "B32"]
[PlyCount "46"]
[EventDate "1975.08.06"]
@fonsp
fonsp / bas64url benchmark.jl
Created March 7, 2022 20:26
JS and Julia implementations for base64url, a non-standard variant of base64. See https://en.wikipedia.org/wiki/Base64#Variants_summary_table
### A Pluto.jl notebook ###
# v0.18.1
using Markdown
using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end