Skip to content

Instantly share code, notes, and snippets.

@tumen102
tumen102 / arsenal.lua
Created July 17, 2022 21:36
Arsenal Cosmetic Mod GUI (open source)
print("Initializing GUI")
local sizeX = 250
local sizeY = 200
local posX = 3
local posY = 250
local title = "workspace"
local version = "0.1_cosmetic"
local notifSound = Instance.new("Sound", workspace)
notifSound.SoundId = "rbxassetid://7853210274"
function notify(notifTitle, notifText, notifDuration)
import requests;
import json;
req = requests.get("https://proxylist.geonode.com/api/proxy-list?limit=7000&page=1&sort_by=lastChecked&sort_type=desc&protocols=http");
jsn = json.loads(req.text)["data"];
i = 0;
while i < len(jsn):
print("\033[95m"+jsn[i].get('ip') + ":" + jsn[i].get('port'));
i+=1;
@tumen102
tumen102 / ColourUtil.java
Last active June 20, 2021 09:09
Set openGL colour with a integer instead of floats/doubles.
public static float[] hexToFloat(int colourToConvert) {
float red = (float) (colourToConvert >> 16 & 255) / 255.0F;
float green = (float) (colourToConvert >> 8 & 255) / 255.0F;
float blue = (float) (colourToConvert & 255) / 255.0F;
return new float[] {red, green, blue};
}
public static void glColorInt(int hexColour) {
float[] rgbValues = hexToFloat(hexColour);
GL11.glColor3f(rgbValues[0], rgbValues[1], rgbValues[2]);
@tumen102
tumen102 / gist:c612d5068dac6abdaa4f3dd83fa4787b
Created June 20, 2021 09:02
Set openGL color with 0xff112233 type value.
public static float[] hexToFloat(int colourToConvert) {
float red = (float) (colourToConvert >> 16 & 255) / 255.0F;
float green = (float) (colourToConvert >> 8 & 255) / 255.0F;
float blue = (float) (colourToConvert & 255) / 255.0F;
return new float[] {red, green, blue};
}
public static void glColorInt(int hexColour) {
float[] rgbValues = hexToFloat(hexColour);
int ticks = 0;
public void onEnable() {
ticks = 0;
}
public void onDisable() {
mc.timer.timerSpeed = 1f;
}