Skip to content

Instantly share code, notes, and snippets.

/* "Black Mirror" theme for Sillypost, by Psychpsyo */
/*
Just replace USER_ID_HERE with the user who your want
to block and then all their posts will be blurred.
*/
.post:has([href="/user/USER_ID_HERE"]) {
filter: blur(15px);
&:hover {
filter: blur(0px);
transition: filter 1s;
@Psychpsyo
Psychpsyo / Nihongo.css
Last active May 17, 2025 17:40
Sillypost Theme "Nihongo" (WIP)
/* "Nihongo" theme for Sillypost, by Psychpsyo */
body {
font-family: sans-serif;
}
::before, ::after {
font-size: initial;
}
#header {
#logo {
@Psychpsyo
Psychpsyo / FreudianDrip.css
Last active May 17, 2025 17:10
Sillypost Theme "Freudian Drip"
/* "Freudian Drip" theme for Sillypost, by Psychpsyo */
html {
--sigmund: url("https://upload.wikimedia.org/wikipedia/commons/3/36/Sigmund_Freud%2C_by_Max_Halberstadt_%28cropped%29.jpg");
--signature: url("https://upload.wikimedia.org/wikipedia/commons/6/65/FreudSignature.svg");
--header-height: 142px;
}
@media screen and (max-width: 800px) {
html {
--header-height: 122px;
@Psychpsyo
Psychpsyo / nChooseK.mjs
Created July 3, 2024 16:34
A javascript function that returns all ways to choose K elements from a list of N.
export function nChooseK(n, k) {
if (k > n) throw new Error("Cannot choose " + k + " elements from a list of " + n + ".");
let choices = [];
for (let i = k - 1; i >= 0; i--) {
choices.push(i);
}
let combinations = [];
combinations.push([...choices]);