Skip to content

Instantly share code, notes, and snippets.

@EmmaEwert
EmmaEwert / ChildLockedTransform.cs
Created July 24, 2018 03:27
Temporary component for moving transform parents without moving children.
using UnityEngine;
public class ChildLockedTransform : MonoBehaviour { }
-- 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';
public static String theLongestWord(String[] words) {
return Stream.of(words)
.reduce((a, b) -> a.length() > b.length() ? a : b)
.orElse(null);
}

Opret projekt

Indlæs fra CSV-fil til TableView

# 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)
#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);}
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;
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 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 {
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;