Skip to content

Instantly share code, notes, and snippets.

import {readFile, writeFile} from "fs"
function read_bin(index, block_size = 314, file_buffer) {
const use_u16 = !file_buffer[0]
const track_buffers = {}, odd_block_idxs = {}, even_block_idxs = {}
let total_odd_idxs = 0
// track block indices table
Object.entries(index).forEach(([key, idx]) => {
let num_odd_idxs = file_buffer[idx]
@wulliy
wulliy / hash.js
Created February 5, 2024 01:31
hashing function, but made to work in Scratch.
// wuilly
// 11/6/2023
function hash(str, salt) {
// TODO: make this hashing function more collision-resistant
if (salt != null) {
str = `${salt}${str}`
}
if (str == null || str == "") {
rules
tos
terms-of-service
privacy
privacy-policy
privacypolicy
about
news
signup
signin
@wulliy
wulliy / wasteof3 banned username redirects list
Last active September 20, 2022 06:21
413 banned usernames that cannot be redirected
".json"
".rss"
".well-known"
".xml"
"about"
"abuse"
"access"
"account"
"accounts"
"activate"