Skip to content

Instantly share code, notes, and snippets.

@KatieFrogs
KatieFrogs / scorestorage-convert.js
Created Dec 6, 2021
taiko-web score string decoder and encoder
View scorestorage-convert.js
function scoreDecoder(scoreString){
var difficulty = ["oni", "ura", "hard", "normal", "easy"]
var scoreKeys = ["points", "good", "ok", "bad", "maxCombo", "drumroll"]
var crownValue = ["", "silver", "gold"]
var songAdded = false
var output = {title: null}
if(typeof scoreString === "string" && scoreString){
var diffArray = scoreString.split(";")
for(var i in difficulty){
if(diffArray[i]){
@KatieFrogs
KatieFrogs / vgmstream-web.py
Last active Oct 18, 2021
Python script that opens files in vgmstream-web
View vgmstream-web.py
#!/usr/bin/env python3
import os
import sys
import http.server
import urllib
import shutil
import posixpath
from functools import partial
from http import HTTPStatus
@KatieFrogs
KatieFrogs / drpextract.py
Created Jul 29, 2021
.drp file extractor
View drpextract.py
#!/usr/bin/env python3
import os
import zlib
import struct
def extractFile(inputFile):
if type(inputFile) is str:
file = open(inputFile, "rb")
else:
@KatieFrogs
KatieFrogs / nutextract.py
Last active Jul 29, 2021
.nut texture extractor and encoder, based on Smash Forge code
View nutextract.py
#!/usr/bin/env python3
import os
import struct
class Dds:
class DdsFormat:
Rgba = 0
Dxt1 = 1
Dxt3 = 2
View taikodb_hash.py
import os
import sys
import hashlib
import base64
import sqlite3
def md5(md5hash, filename):
with open(filename, "rb") as file:
for chunk in iter(lambda: file.read(64 * 1024), b""):
md5hash.update(chunk)
View songtitle.txt
!!!カオスタイム!!!
en !!!Chaos Time!!!
-EDY- エレクトリカルダンシングヨガー
en -EDY- Electrical Dancing Yoga
365日の紙飛行機
en 365 Nichi No Kami-Hikouki
残酷な天使のテーゼ
@KatieFrogs
KatieFrogs / Readme.md
Last active Jun 24, 2022
CollabVM Autopaste (beta)
View Readme.md

CollabVM Autopaste

Firefox users: Enable this option in about:config dom.events.testing.asyncClipboard

Press the paste button to paste the text or script in your clipboard into the VM.

This scripting language is made out of functions. The functions are all written inside {curly} braces.

The most basic is the {#} function, it should be always at the top of the script, otherwise whatever is in your clipboard gets pasted. You can log stuff between {log} and {logend} functions, like so: