Skip to content

Instantly share code, notes, and snippets.

local notify = {}
notify.__index = notify
-- Green 150, 185, 1
-- Red 255, 24, 24
notify.invoke_callback = function(timeout)
return setmetatable({
active = false,
delay = 0,
@SamHoque
SamHoque / nuxt.config.js
Created March 6, 2022 04:11
Nuxt CSS Remapper / Obfuscator
/**
* Nuxt CSS Remapper
* @author SamHoque
*/
const rules = config.module.rules;
const cssLoader = rules.find(rule => rule.test.toString() === '/\\.css$/i');
/**
* Remap oneOf array
*/
@SamHoque
SamHoque / automine.java
Created March 12, 2022 02:48
A simple forge mod I created in 2016 that would auto mine and repair the pickaxe on a server I used to play on.
public class Main {
static final String MODID = "Rab";
static final String VERSION = "1.0";
private Minecraft mc = Minecraft.getMinecraft();
private boolean repair;
@Mod.EventHandler
public void init(final FMLPreInitializationEvent event) {
MinecraftForge.EVENT_BUS.register(this);
}
@SamHoque
SamHoque / yahoodeletemail.js
Created March 31, 2022 22:53
Mass Delete Yahoo Mail
/**
* Yahoo Mass Mail Deleter
* @version 1.0.0
* @author Sam Hoque
* @description I made this little script due to yahoo only showing me 3 emails at a time out of 1200 mails! and there was no way to get rid of them all quickly.
* @license MIT
*/
//Save reference to the JQuery dollar sign variable, for some reason this becomes null, so we store it in a variable.
const jquery = $;