Skip to content

Instantly share code, notes, and snippets.

@JySzE
JySzE / mpv.conf
Last active October 10, 2025 10:08
JySzE MPV Config
Moved to https://github.com/JySzE/SoM-MPV-Config
@dkaraush
dkaraush / oklch2rgb.js
Last active November 5, 2025 15:58
conversion OKLCH into RGB and RGB into OKLCH in js, simplified
const multiplyMatrices = (A, B) => {
return [
A[0]*B[0] + A[1]*B[1] + A[2]*B[2],
A[3]*B[0] + A[4]*B[1] + A[5]*B[2],
A[6]*B[0] + A[7]*B[1] + A[8]*B[2]
];
}
const oklch2oklab = ([l, c, h]) => [
l,
@mahynski
mahynski / notes_jax_numba.md
Last active November 21, 2025 10:47
Using Numba and JAX to Accelerate Python Code #notes

tl;dr

Numba is a "just in time" (jit) compiler for python. It is designed to optimize floating point operations and loops which makes it ideal for scientific code. The simplest way to use it is to decorate you function as shown below, which instructs Numba to compile the function into fast machine code the first time it is called.

from numba import jit

@jit(nopython=True)
def dotproduct(v1, v2):
	isum = 0.0
@agyild
agyild / FSR.glsl
Last active November 19, 2025 20:48
AMD FidelityFX Super Resolution v1.0.2 for mpv
// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
@agyild
agyild / CAS-scaled.glsl
Last active November 5, 2025 22:05
AMD FidelityFX Contrast Adaptive Sharpening v1.0.2 for mpv
// LICENSE
// =======
// Copyright (c) 2017-2019 Advanced Micro Devices, Inc. All rights reserved.
// -------
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
// modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
// -------
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
@travisbrown
travisbrown / mcclay_roman-followers.csv
Created January 3, 2022 13:49
Accounts following mcclay_roman before it was suspended
49578113 lucknau
2900836041 lolxkeyscore
1140699248 JohnJonrwn
1471976627538214912 smug_ghoul
1090746712988229632 machiavellian47
1250591303500476416 FatThesoldier
3004333383 brockreiss
1470524460461694976 eniworef
178935753 thekarate
1109262833387257857 end_history
@leblancfg
leblancfg / tableau_10.scss
Created October 6, 2020 13:41
Tableau 10 Color Palette Hex Codes
// Tableau 10 color theme
$themes: (
blue: #5778a4,
orange: #e49444,
red: #d1615d,
teal: #85b6b2,
green: #6a9f58,
yellow: #e7ca60,
purple: #a87c9f,
pink: #f1a2a9,
@scheibo
scheibo / gen1ou.txt
Created December 3, 2018 02:53
Gen 1 - OU Teams
=== [gen1ou] marcoasd 2014 ===
Gengar
- Hypnosis
- Thunderbolt
- Night Shade
- Explosion
Chansey
- Ice Beam
@shabbir-hasan
shabbir-hasan / mpv.conf
Created July 29, 2018 14:43
MPV Configuration (mpv.conf) on Windows 10 Pro
# vim: syntax=config
###########
# General #
###########
priority=high
input-ipc-server=/tmp/mpvsocket # listen for IPC on this socket
load-stats-overlay=yes # use local stats.lua
.tab-background {
border-radius: 6px 6px 0 0 !important;
margin-block: 0 !important;
outline: none !important;
}
.tab-background:is([selected], [multiselected]) {
box-shadow: none !important;
}