Skip to content

Instantly share code, notes, and snippets.

import java.io.BufferedInputStream;import java.io.FileInputStream;import java.io.IOException;import java.util.ArrayList;import java.util.Enumeration;import java.util.jar.JarEntry;import java.util.jar.JarFile;import java.io.FileNotFoundException;import java.util.jar.JarInputStream;import java.util.zip.ZipEntry;import java.util.zip.ZipInputStream;public class a{ public static void main(String[] args) throws IOException, FileNotFoundException { System.out.println('a'); JarFile t = new JarFile("C:\\Users\\galbraithja\\Desktop\\.git\\Test\\src\\test.jar"); ArrayList<JarEntry> classes = new ArrayList<JarEntry>(); JarEntry e = new JarEntry("C:\\Users\\galbraithja\\Desktop\\.git\\Test\\src\\test.jar"); System.out.println(t.toString() +" , " + e.toString()); System.out.println('c'); Enumeration<JarEntry> c = t.entries(); c.nextElement(); c.nextElement(); int f=0; while (c.hasMoreElements()) { classes.add(c.nextElement());
ClassLoader classLoader = new URLClassLoader(new URL[]{new URL("jar:file:/standard.jar!/")});URL url = classLoader.getResource("StandardPlugin.class");JarURLConnection connection = (JarURLConnection) url.openConnection();JarFile file = connection.getJarFile();String jarPath = file.getName();manager.addClass(classLoader.loadClass(jarPath));
@rileyJones
rileyJones / WormArray.cpp
Last active February 24, 2022 04:02
WormArray
class WormArray() {
public:
int* head; //Values from head inclusive to tail exclusive
int* tail;
int* min;
int* max;
int shift() {
if(head == tail) return 0;
return *(head++);
}
@rileyJones
rileyJones / README
Last active July 6, 2022 07:16
PDMM+; touchpad as touch slider; AHK script
USE:
This autohotkey script allows the touchpad to operate like a touch slider in Project Diva Megamix+
DISADVANTAGES:
This script disables the Left Control key,
rebinds scrolling,
and will type letters when you move the mouse
SETUP:
1. Make sure "mouseDelta.ahk" and "TouchSlider.ahk" are in the same folder
! youtube block list
! video page
youtube.com###related
! youtube.com###comments
! youtube.com###chat-container
youtube.com##.ytp-next-button
youtube.com##.ytp-cards-button
youtube.com##.ytp-cards-teaser
youtube.com##.annotation
youtube.com##.ytp-ce-video