Skip to content

Instantly share code, notes, and snippets.

package com.blocklings.entity;
import java.util.List;
import java.util.Random;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityAgeable;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
GL11.glDepthFunc(GL11.GL_EQUAL);
GL11.glDisable(GL11.GL_LIGHTING);
texturemanager.bindTexture(RES_ITEM_GLINT);
GL11.glEnable(GL11.GL_BLEND);
OpenGlHelper.glBlendFunc(768, 1, 1, 0);
float f7 = 0.76F;
GL11.glColor4f(0.5F * f7, 0.25F * f7, 0.8F * f7, 1.0F);
GL11.glMatrixMode(GL11.GL_TEXTURE);
GL11.glPushMatrix();
float f8 = 0.125F;
package net.elyon.chocolate;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.RenderBlocks;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.world.IBlockAccess;
import cpw.mods.fml.client.registry.ISimpleBlockRenderingHandler;
public class BlockRenderingHandler implements ISimpleBlockRenderingHandler {
package net.elyon.chocolate;
import cpw.mods.fml.common.Mod;
@Mod(modid = Chocolate.MODID, version = Chocolate.VERSION)
public class Chocolate
{
public static final String MODID = "chocolate";
public static final String VERSION = "0.0.1";
}
package com.mottbro.coastercraftmod.model;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.entity.Entity;
public class ModelCoasterCar1 extends ModelBase
{
//fields
ModelRenderer a1;
#define #define $
$ half f
$ dot •(
$ ~ saturate(
$ _m M
f n(f2 p){f4 a=f4(floor(p+•p,.3660)),.2113,-.5774);p+=•a.xy,a.z)-a;f4 c=f4(~sign(p-p.yx)),0,1);f3 d=2*frac(_(_(a.y+c.zyw)+a.x+c.zxw)*.0244)-1;f4x3 e=f4x3(a.zzww+p.xyxy-c.xyzz,p,abs(d)-.5,d-round(d));f4x3 g=e*e;return 130*•pow(~.5-(g.M11M00M02+g.M12M01M10)),4)*rsqrt(g[2]+g[3]),e[2]*e.M12M01M10+e[3]*e.M11M00M02);}
# Ternary CPU
Balanced ternary trits of `-`, `0` and `+`
1 tribble = 6 trits (729 states)
CPU memory map addresses are 1 tribble (------ to ++++++), operations operate on tribbles
Three special registers (p = program counter, s = stack pointer, q = query processor)
public static String theLongestWord(String[] words) {
return Stream.of(words)
.reduce((a, b) -> a.length() > b.length() ? a : b)
.orElse(null);
}
-- stop service
-- C:\> cd "C:\Program Files\MySQL\MySQL Server 5.7\bin"
-- C:\> mysqld --init-file=C:\\mysql-init.txt
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';