Skip to content

Instantly share code, notes, and snippets.

@Prof9
Prof9 / mixernoshadow.user.js
Last active June 16, 2017 02:50
Mixer No Shadow
// ==UserScript==
// @name Mixer No Shadow
// @description Makes the stream title, loading overlay and controls invisible on mixer. Ctrl+M toggles visibility of the controls.
// @author Prof. 9
// @version 0.1
// @match https://mixer.com/embed/player/*
// @run-at document-body
// @namespace prof9.mixernoshadow
// ==/UserScript==
@Prof9
Prof9 / EncounterChanceCalc.cs
Last active September 15, 2016 22:17
Star Force encounter chance calculator
using System;
using System.Collections.Generic;
namespace EncounterChanceCalc {
class Program {
static void Main(string[] args) {
// SF1
//decimal rate = 0.10M;
// SF2 and SF3
decimal rate = 0.05M;
@Prof9
Prof9 / WiiUGBADumping.md
Last active March 26, 2023 11:55
Dumping GBA ROMs from Wii U Virtual Console

Dumping GBA ROMs from Wii U Virtual Console

Virtual Console games sold on the Wii U eShop are basically emulators that come prepackaged with a single ROM. If your Wii U is on an exploitable system version, then you can dump this ROM from memory and play it on a conventional emulator like VisualBoy Advance.

In this guide I'll be giving a brief rundown on how to dump the ROMs from your purchased GBA Virtual Console games. Although the steps are fairly simple, you will need some technical know-how for some parts. So if the thought of using a console or a hex editor scares you, turn back now. You've been warned!

This guide covers Windows PCs only. I believe any version from Windows XP onwards will work, but I've only tested this on Windows 10.

Preparation

First we need to gather up some tools and information that we're going to need later.

@Prof9
Prof9 / zbmobile.js
Last active September 27, 2017 01:58
ZetaBoards mobile ads. Requires jQuery.
/*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
* means.
*/
{
var main = $('#main');
@Prof9
Prof9 / bn4tourney.lua
Created October 18, 2015 01:03
MMBN4 Lua tournament matches viewer
local rng = -1;
function rngNext()
rng = rng + 1;
return rng;
end
function getTourneyBoard()
local tourneyNum = memory.readbyte(0x0200ACC5);
local boardPtr = 0x02001460 + tourneyNum * 0x20;
@Prof9
Prof9 / MatchFixer.py
Last active March 18, 2023 23:38
Mega Man Battle Network 4 Tournament Generator
from enum import Enum
class Object(object):
pass
class Version(Enum):
RedSun = 0
BlueMoon = 1
class Navi(Enum):
@Prof9
Prof9 / LZ77Decompress.cs
Created August 28, 2014 20:05
GBA LZ decompression function in C#
/// <summary>
/// Decompresses LZ77-compressed data from the given input stream.
/// </summary>
/// <param name="input">The input stream to read from.</param>
/// <returns>The decompressed data.</returns>
public static MemoryStream Decompress(Stream input) {
BinaryReader reader = new BinaryReader(input);
// Check LZ77 type.
if (reader.ReadByte() != 0x10)
@Prof9
Prof9 / LiveBot.js
Last active September 22, 2022 18:35
LiveBot: node.js script that notifies you when someone starts streaming specific games on Twitch or Hitbox.
var http = require("http");
var https = require("https");
// Stream objects are passed around in the code below. These are the properties:
// stream.platform = "Twitch" or "Hitbox"
// stream.name = name of the streamer
// stream.game = name of game (set in updateGame() call)
// stream.desc = stream status/description
// stream.url = url of stream
// stream.viewers = current amount of viewers