This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* "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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* "Nihongo" theme for Sillypost, by Psychpsyo */ | |
body { | |
font-family: sans-serif; | |
} | |
::before, ::after { | |
font-size: initial; | |
} | |
#header { | |
#logo { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* "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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]); |