Skip to content

Instantly share code, notes, and snippets.

View Xalcon's full-sized avatar

Xalcon Xalcon

View GitHub Profile
@Xalcon
Xalcon / BlockIdEater.java
Created January 6, 2019 01:12
Simple mod to eat up a lot of block IDs. Used to reproduce a bug with chisel and just enough IDs.
package net.xalcon.blockideater;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
@Xalcon
Xalcon / genshim.cpp
Created September 12, 2019 09:20 — forked from nohbdy/genshim.cpp
Shim DLL Generation
// Code originally found on http://www.hulver.com/scoop/story/2006/2/18/125521/185
// Created by Rogerborg
#include <stdio.h>
#include <windows.h>
#include <list>
using namespace std;
// Change this to the name of the DLL that you want to clone
#define CLONE_DLL "WS2_32"
@Xalcon
Xalcon / nlog colored console files
Created October 12, 2019 13:39 — forked from clupasq/nlog colored console files
nlog configuration for colored console + info&error files
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target name="coloredConsole" xsi:type="ColoredConsole" useDefaultRowHighlightingRules="false"
layout="${longdate}|${pad:padding=5:inner=${level:uppercase=true}}|${message}" >
<highlight-row condition="level == LogLevel.Debug" foregroundColor="DarkGray" />
<highlight-row condition="level == LogLevel.Info" foregroundColor="Gray" />
<highlight-row condition="level == LogLevel.Warn" foregroundColor="Yellow" />
@Xalcon
Xalcon / index.html
Created October 17, 2019 12:29
Minimal typescript + sass web setup with auto-reload development http server
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title></title>
<meta name="description" content="HTML5 Website">
<meta name="author" content="">