Skip to content

Instantly share code, notes, and snippets.

View mlugg's full-sized avatar

Matthew Lugg mlugg

View GitHub Profile
@mlugg
mlugg / BakedModelDispatcherDummyGas.java
Created June 14, 2019 16:06
DummyGasItem rendering code
package uk.co.mlugg.addedcells.mekanism.item.render;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import mekanism.api.gas.Gas;
import mekanism.api.gas.GasStack;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.renderer.block.model.BakedQuad;
@mlugg
mlugg / gist:3b42263ca0d2c3e24ab48968850f4875
Created November 13, 2016 18:37
IRC Library Sample Code
import IRCClient
client = IRCClient()
client.connect("irc.vktec.co.uk", "Nick", "Username")
@client.eventHandler("chanMsg")
def onChanMsg(sender, message, action):
# Do something
@client.eventHandler("privMsg")