Skip to content

Instantly share code, notes, and snippets.

View TeamDman's full-sized avatar
🌜
o/

TeamDman

🌜
o/
View GitHub Profile
@TeamDman
TeamDman / Board Schematic
Last active December 6, 2016 18:35
Failed compile for STM32 Firefly
http://i.imgur.com/dcpbT9j.png
@TeamDman
TeamDman / Tips.java
Last active January 9, 2021 20:22
Java Tips
import java.io.IOException;
import java.util.Random;
import java.util.Scanner;
public class Tips {
private static final Scanner in = new Scanner(System.in);
private static final Random rand = new Random(System.currentTimeMillis());
// Never reassigned => should be final
public static void main(String[] args) {
@TeamDman
TeamDman / paginator.js
Created February 12, 2019 00:55
A basic paginator for Discord.js
createPaginator = async (sourceMessage, message, next, prev) => {
const emojinext = "▶";
const emojiprev = "◀";
const emojistop = "❌";
try {
await message.react(emojiprev);
await message.react(emojinext);
// await message.react(emojistop);
let handle = (reaction, user) => {
if (reaction.message.id !== message.id)
@TeamDman
TeamDman / crafttweaker-raw.log
Last active March 13, 2019 21:27
Time profile of FTB Interactions scripts
This file has been truncated, but you can view the full file.
[PREINITIALIZATION][CLIENT][INFO] Current loaders after merging: [[preinit]]
[PREINITIALIZATION][CLIENT][INFO] Loading scripts for loader with names [preinit]
[PREINITIALIZATION][CLIENT][INFO] [preinit | SIDE_CLIENT]: Skipping file {[999:crafttweaker]: _activeStages.zs} as we are currently loading with a different loader
[PREINITIALIZATION][CLIENT][INFO] [preinit | SIDE_CLIENT]: Skipping file {[998:crafttweaker]: _Global.zs} as we are currently loading with a different loader
[PREINITIALIZATION][CLIENT][INFO] [preinit | SIDE_CLIENT]: Skipping file {[998:crafttweaker]: _oreDict.zs} as we are currently loading with a different loader
[PREINITIALIZATION][CLIENT][INFO] [preinit | SIDE_CLIENT]: Skipping file {[0:gregtech]: _gregtechMaterials.zs} as we are currently loading with a different loader
[PREINITIALIZATION][CLIENT][INFO] [preinit | SIDE_CLIENT]: Skipping file {[0:crafttweaker]: ActuallyAdditions.zs} as we are currently loading with a different loader
[PREINITIALIZATION][CLIENT][INFO] [preinit | SIDE_CLIEN
@TeamDman
TeamDman / interactions-recipefix.zs
Created March 17, 2019 00:27
Replacing components of recipes
recipes.removeRecipeByName("minecraft:golden_hoe");
recipes.removeRecipeByName("mekanism:plasticblock_0");
recipes.removeRecipeByName("mekanism:plasticblock_4");
recipes.removeRecipeByName("mekanism:plasticblock_3");
recipes.removeRecipeByName("mekanism:plasticblock_2");
recipes.removeRecipeByName("mekanism:plasticblock_1");
recipes.removeRecipeByName("thaumcraft:redstoneinlay");
recipes.removeRecipeByName("advancedrocketry:compositionsensor");
recipes.removeRecipeByName("randomthings:escaperope");
recipes.removeRecipeByName("mekanism:plasticblock_8");
@TeamDman
TeamDman / MCWorld.java
Last active September 27, 2019 05:00
ZS No such member
package zentriggers.zentriggers.wrappers;
import crafttweaker.annotations.ZenRegister;
import net.minecraft.world.World;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenGetter;
import stanhebben.zenscript.annotations.ZenSetter;
import zentriggers.zentriggers.ZenTriggers;
@ZenRegister
@TeamDman
TeamDman / behind.js
Created December 19, 2019 06:11
Query what manga you are behind on reading
delete get;
delete myId;
delete manga;
delete mangaIdList;
delete socials;
delete i;
delete socialPosts;
delete latestChapters;
const myId = 122045;
const get = (operation, append) => fetch("https://graphql.anilist.co/", {
@TeamDman
TeamDman / .eslintrc
Last active March 2, 2020 16:13
ESLint + Prettier + Typescript setup
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"plugin:vue/base",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
@TeamDman
TeamDman / forgeevents.html
Created February 25, 2020 01:26
List of many Minecraft Forge events
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<title>Forge Events</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<meta name="description" content="" />
<meta name="author" content="Vic" />
<meta name="keywords" content="" />
@TeamDman
TeamDman / WorldFlowView.java
Created May 3, 2020 22:09
BlockModelRenderer::renderModel test
package ca.teamdman.sfm.client.gui;
import ca.teamdman.sfm.client.gui.core.BaseScreen;
import ca.teamdman.sfm.client.gui.core.IFlowView;
import net.minecraft.block.BlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.BlockRendererDispatcher;
import net.minecraft.client.renderer.BufferBuilder;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.client.renderer.model.IBakedModel;