Skip to content

Instantly share code, notes, and snippets.

Avatar
🌜
o/

TeamDman

🌜
o/
View GitHub Profile
@TeamDman
TeamDman / WorldFlowView.java
Created May 3, 2020
BlockModelRenderer::renderModel test
View WorldFlowView.java
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;
@TeamDman
TeamDman / forgeevents.html
Created Feb 25, 2020
List of many Minecraft Forge events
View forgeevents.html
<!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 / .eslintrc
Last active Mar 2, 2020
ESLint + Prettier + Typescript setup
View .eslintrc
{
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"plugin:vue/base",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
@TeamDman
TeamDman / behind.js
Created Dec 19, 2019
Query what manga you are behind on reading
View behind.js
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 / MCWorld.java
Last active Sep 27, 2019
ZS No such member
View MCWorld.java
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 / interactions-recipefix.zs
Created Mar 17, 2019
Replacing components of recipes
View interactions-recipefix.zs
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 / crafttweaker-raw.log
Last active Mar 13, 2019
Time profile of FTB Interactions scripts
View crafttweaker-raw.log
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
@TeamDman
TeamDman / paginator.js
Created Feb 12, 2019
A basic paginator for Discord.js
View paginator.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 / Board Schematic
Last active Dec 6, 2016
Failed compile for STM32 Firefly
View Board Schematic
http://i.imgur.com/dcpbT9j.png
You can’t perform that action at this time.