Skip to content

Instantly share code, notes, and snippets.

@kwyntes
kwyntes / LensDistort_ChromaAbberate_Zoom_trans.frag
Last active February 14, 2024 20:27
shadertoy lens distortion transition [unfinished]
// functional, but there's some fuckiness that needs to be worked out.
// (and after that the code has to cleaned up but that's not too much work.)
// adapted from https://www.shadertoy.com/view/4lSGRw
#define PI 3.14159265358979
// (unused as of now)
float someBezierThing(float t /* [0, 1] */)
@kwyntes
kwyntes / cijfers.py
Created June 4, 2023 21:30
pain [magister api grades extractor thing]
#!/usr/bin/env python3
# i don't know why i ever wrote this (i definitely regret writing it)
# but i found it on my harddrive and thought it might help alleviate some
# of the pain for anyone who ever decides they need something like this for whatever reason...
# i remember i had some kind of idea with this but right now it just outputs all grades info
# it extracts to a grades.json file.
# this is actually really useful for when your school disables viewing grades in test weeks
# *** looking at you stanislas >:( ***
@kwyntes
kwyntes / yes-i-know-i-could-just-make-an-account-instead.js
Last active March 28, 2023 14:02
chess.com autosettings userscript
// ==UserScript==
// @name chess.com autosettings
// @match https://*.chess.com/play/*
// @version 1.0
// ==/UserScript==
const $ = slt => document.querySelector(slt);
const sleep = ms => new Promise(rsv => setTimeout(rsv, ms));
const select = (val, slt) => {