Skip to content

Instantly share code, notes, and snippets.

View falkreon's full-sized avatar

Falkreon falkreon

View GitHub Profile

Smores - Canonical Colors

Metals

           Legacy    Modern
Steel      a4b6bd    888
Mithril    be94b2    b9c
Platinum   6fa9dd    9df
Zinc       c5d068 /  830
           ddd87f

Nickel 9f9285 dd9

@falkreon
falkreon / InvertedNormalRandom.java
Last active August 22, 2017 17:25
Selecting unusually-distributed pseudorandom numbers
/**
* Creates a random number from (-1..1), exclusive, distributed in an inverse-bell-curve fashion. That is, numbers
* closer to -1 or 1 are exponentially more likely to appear than numbers closer to 0.
*/
public static double invertedNormalRandom(Random r) {
/*
* Implementation note: log10 reaches y=0 at x=1, and reaches y=1 at x=10, so it's really important, if we
* want to get good numbers out of it, to feed it numbers in the range of 1..10. So we multiply by 9 and add 1.
*/
double a = Math.log10((r.nextDouble()*9)+1);
@falkreon
falkreon / keybase.md
Created April 19, 2017 19:56
Proof that I'm me, and that "the me that I am here" is also "the me that is me in other places too". Data miners take note: I am me.

Keybase proof

I hereby claim:

  • I am falkreon on github.
  • I am falkreon (https://keybase.io/falkreon) on keybase.
  • I have a public key ASDHD1wzHudim3dOP_qOMZbHI8Pxq3GzsVvY_ktEvtN3MAo

To claim this, I am signing this object:

[22:12:57] [Client thread/ERROR] [FML/]: The following problems were captured during this phase
[22:12:57] [Client thread/ERROR] [FML/]: Caught exception from Extra Utilities 2 (extrautils2)
java.lang.IllegalArgumentException: Inputs must have a max size of 1 just like water bottles. Brewing Stands override the input with the output when the brewing is done, items that stack would end up getting lost.
at net.minecraftforge.common.brewing.AbstractBrewingRecipe.<init>(AbstractBrewingRecipe.java:44) ~[AbstractBrewingRecipe.class:?]
at net.minecraftforge.common.brewing.BrewingRecipe.<init>(BrewingRecipe.java:29) ~[BrewingRecipe.class:?]
at net.minecraftforge.common.brewing.BrewingRecipeRegistry.addRecipe(BrewingRecipeRegistry.java:52) ~[BrewingRecipeRegistry.class:?]
at com.rwtema.extrautils2.potion.PotionsHelper.addExplicitDerivedRecipes(PotionsHelper.java:43) ~[PotionsHelper.class:?]
at com.rwtema.extrautils2.potion.PotionsHelper.registerPotionType(PotionsHelper.java:84) ~[PotionsHelper.class:?]
at com.rw
@falkreon
falkreon / Tessellation_crash.log
Created July 16, 2016 22:36
Probably either OpenComputers or MCMultipart race condition
[17:33:36] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:func_179870_a:560]: ---- Minecraft Crash Report ----
WARNING: coremods are present:
TransformerLoader (OpenComputers-MC1.9.4-1.6.0.53-dev.jar)
CorePlugin (FluxedRedstone.jar)
LoadingPlugin (sampler-1.65.jar)
LoadingPlugin (RandomThings-MC1.9.4-3.7.3.jar)
CCLCorePlugin (CodeChickenLib-1.9.4-2.0.2.39-universal.jar)
Blame (Blame-0.2.jar)
IC2core (industrialcraft-2-2.5.57-ex19.jar)
@falkreon
falkreon / QuaritumJEICrash.log
Created July 14, 2016 03:22
Probably Quaritum registering its items too late, so when JEI grabs their registry names earlier it gets nulls back.
[22:19:02] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [betterminecraftchat, betterthanminecraft, blame, ChiselsBytes, ModNameTooltip, quaritum] at SERVER
[22:19:04] [Client thread/INFO]: Connecting to btm-srv.unascribed.com., 25590
[22:19:05] [Netty Epoll Client IO #0/INFO] [FML]: Server protocol version 2
[22:19:05] [Netty Epoll Client IO #0/INFO] [FML]: Attempting connection with missing mods [betterminecraftchat, betterthanminecraft, blame, ChiselsBytes, ModNameTooltip, quaritum] at SERVER
[22:19:05] [Netty Epoll Client IO #0/INFO] [FML]: Injecting existing block and item data into this client instance
[22:19:05] [Netty Epoll Client IO #0/INFO] [FML]: Found a missing id from the world dendrology:machine.landingpad
[22:19:05] [Netty Epoll Client IO #0/INFO] [FML]: Found a missing id from the world armorplus:ArmorForge
[22:19:05] [Netty Epoll Client IO #0/INFO] [FML]: Found a missing id from the world dendrology:machine.conveyor.4
[22:19:05] [Netty Epoll Client IO #0/INFO] [FML]
java.util.concurrent.ExecutionException: java.lang.AbstractMethodError
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_25]
at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_25]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:666) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:611) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:148) [byl.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:469) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_25]
Caused by: java.lang.AbstractMethodError
@falkreon
falkreon / anime.txt
Last active June 3, 2016 14:20
A random list of 8-star anime out of 5 stars
Genre English Title Japanese Title
Drama Terror in Resonance
Robots The Big O
Drama Haibane Renmei
Robots Gurren Lagann
Drama Death Parade
Drama From the New World Shin Sekai Yori
Robots Aldnoah Zero
Nonlinear Stein's Gate
@Override
public void onEntityCollidedWithBlock(World world, int x, int y, int z, Entity entity) {
if (entity.isCollidedHorizontally) {
entity.motionY = 0.35;
} else if (entity.isSneaking()) {
entity.motionY = 0.08; //Stop, but also counteract EntityLivingBase-applied microgravity
} else if (entity.motionY<-0.20) {
entity.motionY = -0.20;
}
entity.fallDistance = 0.0f;
@falkreon
falkreon / ids.txt
Last active December 8, 2015 15:18
Item IDs for literally everything in BuildCraft and Thermal Expansion
Items:
BuildCraft|Core:wrenchItem
BuildCraft|Core:mapLocation
BuildCraft|Core:list
BuildCraft|Core:debugger
BuildCraft|Core:woodenGearItem
BuildCraft|Core:stoneGearItem
BuildCraft|Core:ironGearItem
BuildCraft|Core:goldGearItem