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 numpy as np | |
from matplotlib import pyplot as plt | |
from matplotlib.animation import FuncAnimation | |
from scipy.spatial import distance | |
# switch to different window than Pycharm's. | |
# since pycharm doesn't support animation | |
plt.switch_backend("Qt5Agg") | |
# constants |
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 numpy as np | |
from matplotlib import pyplot as plt | |
from matplotlib.animation import FuncAnimation | |
# switch to different window than Pycharm's. | |
# since pycharm doesn't support animation | |
plt.switch_backend("Qt5Agg") | |
# constants | |
box_size = 100 # the size of the box |
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 numpy as np | |
from matplotlib.figure import Figure | |
from PyQt5 import QtCore, QtWidgets, QtGui, Qt | |
from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas | |
from matplotlib.backends.backend_qt5agg import NavigationToolbar2QT as NavigationToolbar | |
import sys | |
class ApplicationWindow(QtWidgets.QMainWindow): | |
def __init__(self, universe, plotting_objects): |
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 com.karelmikie3.craftcord.patch; | |
import com.google.common.collect.Lists; | |
import com.karelmikie3.craftcord.util.ClientEmoteHelper; | |
import com.karelmikie3.craftcord.util.CommonEmoteHelper; | |
import com.mojang.blaze3d.platform.GlStateManager; | |
import net.minecraft.client.Minecraft; | |
import net.minecraft.client.renderer.BufferBuilder; | |
import net.minecraft.client.renderer.Tessellator; | |
import net.minecraft.client.renderer.vertex.DefaultVertexFormats; |
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
var ASMAPI = Java.type("net.minecraftforge.coremod.api.ASMAPI"); | |
var Opcodes = Java.type("org.objectweb.asm.Opcodes"); | |
var InsnList = Java.type("org.objectweb.asm.tree.InsnList"); | |
var MethodInsnNode = Java.type("org.objectweb.asm.tree.MethodInsnNode"); | |
var VarInsnNode = Java.type("org.objectweb.asm.tree.VarInsnNode"); | |
var IntInsnNode = Java.type("org.objectweb.asm.tree.IntInsnNode"); | |
var InsnNode = Java.type("org.objectweb.asm.tree.InsnNode"); | |
var RENDER = ASMAPI.mapMethod("func_146230_a"); |
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
---- Minecraft Crash Report ---- | |
// Why did you do that? | |
Time: 30/06/19 20:24 | |
Description: Initializing game | |
java.lang.VerifyError: Bad type on operand stack | |
Exception Details: | |
Location: | |
net/minecraft/client/gui/NewChatGui.setChatLine(Lnet/minecraft/util/text/ITextComponent;IIZ)V @40: invokestatic |
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
var ASMAPI = Java.type("net.minecraftforge.coremod.api.ASMAPI"); | |
var Opcodes = Java.type("org.objectweb.asm.Opcodes"); | |
var InsnList = Java.type("org.objectweb.asm.tree.InsnList"); | |
var MethodInsnNode = Java.type("org.objectweb.asm.tree.MethodInsnNode"); | |
var VarInsnNode = Java.type("org.objectweb.asm.tree.VarInsnNode"); | |
var IntInsnNode = Java.type("org.objectweb.asm.tree.IntInsnNode"); | |
var InsnNode = Java.type("org.objectweb.asm.tree.InsnNode"); | |
var RENDER = ASMAPI.mapMethod("func_146230_a"); |
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 com.karelmikie3.shieldserver.command; | |
import com.karelmikie3.shieldserver.util.NickUtil; | |
import com.karelmikie3.shieldserver.util.TextUtil; | |
import com.mojang.brigadier.CommandDispatcher; | |
import com.mojang.brigadier.arguments.StringArgumentType; | |
import com.mojang.brigadier.context.CommandContext; | |
import com.mojang.brigadier.exceptions.CommandSyntaxException; | |
import com.mojang.brigadier.exceptions.SimpleCommandExceptionType; | |
import net.minecraft.ChatFormat; |
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 com.karelmikie3.shieldserver.command; | |
import com.karelmikie3.shieldserver.util.NickUtil; | |
import com.karelmikie3.shieldserver.util.TextUtil; | |
import com.mojang.brigadier.CommandDispatcher; | |
import com.mojang.brigadier.arguments.StringArgumentType; | |
import com.mojang.brigadier.context.CommandContext; | |
import com.mojang.brigadier.exceptions.CommandSyntaxException; | |
import com.mojang.brigadier.exceptions.SimpleCommandExceptionType; | |
import net.minecraft.command.arguments.EntityArgumentType; |
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 com.karelmikie3.wendybot; | |
import java.io.File; | |
import java.io.IOException; | |
import java.lang.instrument.Instrumentation; | |
import java.util.*; | |
import java.util.jar.JarFile; | |
public class WendyBotAgent { | |
public static void premain(String args, Instrumentation instrumentation) { |
NewerOlder