Skip to content

Instantly share code, notes, and snippets.

View Unh0lyTigg's full-sized avatar

Robert Allen Unh0lyTigg

View GitHub Profile
{
"name": "74LS00",
"function": "TTL Quad Nand Gate",
"pins": [
{
"id": 1,
"function": "1A"
},
{
"id": 2,
package org.unh0lytigg.mobeds;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.Random;
import net.minecraft.block.Block;
import net.minecraft.block.BlockDirectional;
import net.minecraft.block.ITileEntityProvider;
import net.minecraft.block.material.Material;
$(document).scroll(function() {
if ($(document).scrollTop() > 0) {
$('header').css('position', 'fixed');
$('header').css('z-index', '1');
} else {
$('header').css('position', 'static');
$('header').css('z-index', 'auto');
}
});
<article class="rssitem">
<h3 class="rss-title">New Website coming together nicely.</h3><h3 class="rss-pinned"></h3>
<hr class="rss-title-sep" />
<h6>August 8<sup>th</sup>, 2014</h6>
<p>Currently just working on the homepage, I'll add the other pages soon...</p>
</article>
#wrapper {
max-width: 940px;
margin: 0 auto;
padding: 0 5%;
}
<body>
<header>
<a href="index.html" id="logo">
<h1>Unh0ly_Tigg</h1>
<h2>Minecraft Modding</h2>
</a>
<nav>
<ul>
<li><a href="index.html" class="selected">Home</a></li>
<li><a href="mods.html">Mods</a></li>
@Unh0lyTigg
Unh0lyTigg / build.gradle
Created July 20, 2014 11:25
custom source attachment for CBs mods
configurations {
attachThisSource
}
dependencies {
compile 'codechicken:CodeChickenCore:1.7.10-1.0.2.11:dev'
compile 'codechicken:CodeChickenLib:1.7.10-1.1.1.95:dev'
compile 'codechicken:ForgeMultipart:1.7.10-1.1.0.297:dev'
compile 'codechicken:NotEnoughItems:1.7.10-1.0.2.28:dev'
attachThisSource 'codechicken:CodeChickenCore:1.7.10-1.0.2.11:src'
@Unh0lyTigg
Unh0lyTigg / gist:ccd5c769654df15637c5
Created July 7, 2014 09:09
non-Minecraft facsimile of Minecraft's glint rendering code
GL11.glDepthFunc(GL11.GL_EQUAL);
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glBindTexture(glintTextureId);
GL11.glEnable(GL11.GL_BLEND);
if (GLContext.getCapabilities().OpenGL14) {
if (GLContext.getCapabilities().GL_EXT_blend_func_separate) {
EXTBlendFuncSeparate.glBlendFuncSeparateEXT(GL11.GL_SRC_COLOR, GL11.GL_ONE, GL11.GL_ONE, GL11.GL_ZERO);
} else {
GL14.glBlendFuncSeparate(GL11.GL_SRC_COLOR, GL11.GL_ONE, GL11.GL_ONE, GL11.GL_ZERO);
}
@Unh0lyTigg
Unh0lyTigg / MinecraftAsciiSpacer.java
Created July 7, 2014 07:01
MinecraftAsciiSpacer
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashSet;
@Unh0lyTigg
Unh0lyTigg / GuiIDs.java
Created July 2, 2014 04:22
GuiIDs.java
package org.unh0lytigg.circuitboards.guisystem;
import org.unh0lytigg.circuitboards.inventory.ContainerConfiguration;
public enum GuiIDs {
BUILDER,
SIMULATOR,
CHIPSELECTOR,
TOOLBOX,
TOOLBOX_LARGE,