This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Always Maraca | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Always get the maraca dog on Deltarune's 404 page | |
// @author Benjamin Urquhart | |
// @match *://deltarune.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=deltarune.com | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Windows.h> | |
#include <iostream> | |
#include <string> | |
#define func extern "C" __declspec(dllexport) | |
// Some boilerplate code | |
// Taken from https://github.com/Archie-osu/YYToolkit | |
#define TRoutine void* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.ByteArrayInputStream; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.nio.ByteBuffer; | |
import java.nio.ByteOrder; | |
import java.nio.file.Files; | |
import java.util.ArrayList; | |
import java.util.Arrays; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: python add.py | |
# Enter a positive number via standard input | |
# It will print the number plus one | |
class Incrementer: | |
n = 0 | |
def __init__(self, n =0): | |
self.n = n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.HashMap; | |
import java.util.Arrays; | |
public class BadJSON { | |
public static HashMap<String, Object> parseJSON(String s) { | |
String toParse = new String(); | |
for(char character : s.toCharArray()) toParse = toParse + (character == 10 ? new String() : new String(new char[]{character})); | |
HashMap<String, Object> out = new HashMap<String, Object>(); | |
if(toParse.charAt(0) != '{' || toParse.charAt(toParse.length() - 1) != '}') return out; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.benjaminurquhart.bfj; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import javax.script.ScriptException; | |
public class BFJ { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.benjaminurquhart.stdout; | |
import java.io.PrintStream; | |
import java.time.OffsetDateTime; | |
import java.util.Locale; | |
// yes yes I know there's no input for I here. | |
public class STDIOPlus extends PrintStream{ | |
private static boolean enabled; | |
// Do NOT mess around with the stdout or stderr variables unless you want to risk breaking disable() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.FileInputStream; | |
import java.nio.file.Files; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
public class Extractor { | |
public static int find(byte[] bytes, byte[] toFind, int start) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import traceback | |
mediaDir = "/media/" | |
def strip(string): | |
toRemove = ["'","/"," "] | |
stripped = "" | |
for i in string: | |
if i in toRemove: | |
stripped = stripped + "\ ".replace(" ","") |