Skip to content

Instantly share code, notes, and snippets.

@roxwize
roxwize / docs.md
Last active October 6, 2022 10:58
MPP API documentation

Multiplayer Piano (Unofficial) Bot Documentation

While it is never explicitly stated within the website, Multiplayer Piano has bot support and its own API. Accessing it is simple. Everything is contained within the MPP object and it contains everything you need to get started.

Object functions and classes

chat

The chat object. Controls the sending and receiving of messages.

Functions

blur()

De-focuses the chat and places it in the background.

clear()

Removes every message in chat.

@roxwize
roxwize / index.js
Created October 27, 2022 01:41
JavaScript prototype for pre
class Cell {
constructor(type, colour = '#000000', ctx, arr) {
this.type = type;
this.colour = colour;
this.ctx = ctx; // The canvas itself
this.arr = arr;
this.cellSize = {
w: Math.round(this.ctx.width / this.arr.w),
h: Math.round(this.ctx.height / this.arr.h),
};
@roxwize
roxwize / sketch.js
Created December 14, 2022 14:19
abandoned LMC implementation
// this was originally intended to be a full implementation of a little man computer including assembling, but i got to the assembly part and gave up.
// i might remake this at some point, but itll probably require manual program assembly.
const INT_MAX = 999;
const INT_MIN = -999;
const zeroPad = (num, places) => {
const res = String(Math.abs(num)).padStart(places, "0");
return num < 0 ? "-" + res : res;
};
@roxwize
roxwize / index.html
Created March 14, 2024 00:30
TEA FORTRESS 8
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>TEA FORTRESS 8</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>TEA FORTRESS 8</h1>
@roxwize
roxwize / .twmrc
Last active August 25, 2024 22:11
dotfiles (temp)
AutoRelativeResize
DontMoveOff
NoBackingStore
NoCaseSensitive
NoDefaults
NoGrabServer
NoHighLight
NoTitleHighlight
OpaqueMove
ShowIconManager
@roxwize
roxwize / vm.py
Last active September 19, 2024 01:03
#!/usr/bin/env python3
import argparse, subprocess, sys
parser = argparse.ArgumentParser(
description = 'run a qemu image with 3GB of ram and KVM acceleration (plus some other stuff)'
)
parser.add_argument('-i', '--image', required = True)
parser.add_argument('-a', '--arch', choices = ['aarch64', 'arm', 'x86_64'], default = 'x86_64', help = 'system architecture to use, currently not functional (default x86_64)')
parser.add_argument('-f', '--format', choices = ['raw', 'qcow2'], default = "qcow2", help = '(default qcow2)')
@roxwize
roxwize / README.md
Last active January 31, 2025 02:29
mipilin readme file for high seas


mipilin is a website lets you check on how your friends are doing, which is a very good and noble thing and something you should feel proud of for even considering. Also you can let YOUR friends know how YOU'RE doing. I guess.

If you're coming from High Seas and want to test the website out, invite codes are available upon request. Just DM roxwize on the Slack.

mipilin mipilin

website screenshot

format ELF64 executable 3
segment readable executable
entry $
; print instructions
mov rsi, s_guide
mov rdx, s_guide.len
call .print
; set prng state to system time
mov rax, 201
mov rdi, 0