Skip to content

Instantly share code, notes, and snippets.

View tsaodown's full-sized avatar

Edd Tsao tsaodown

View GitHub Profile
@tsaodown
tsaodown / sweet_mochi_cornbread.md
Last active January 13, 2024 20:29
Sweet Mochi Cornbread Recipe
  • 4 slices of sweet corn mochi cake piled high on a ceramic plate
  • PREP TIME - 10 min
  • COOK TIME - 1h
  • YIELDS - 16 pieces
  • Directions

  • Notes

    • Mochi cakes in general are notably less chewy with the passage of time, so be sure to eat it fresh for maximum texture.
  • Step 1 - Preparation

    • Gather ingredients

  • ingredients for sweet corn mochi cake on a white countertop
@tsaodown
tsaodown / weechat-slack.md
Last active January 24, 2018 11:18
Connect weechat IRC client to slack team

Start weechat:

$ weechat

Go to the teams gateway page to retrieve your host, user, and pass

In weechat run the following:

@tsaodown
tsaodown / Chunk-inner-walls.cs
Last active June 7, 2016 23:33
DerpCraft - Building a MineCraft Clone in Unity - ChunkManager | Full code available at https://git.io/vok6S
using UnityEngine;
using Utilities;
[RequireComponent(typeof(MeshFilter))]
[RequireComponent(typeof(MeshRenderer))]
[RequireComponent(typeof(MeshCollider))]
public class Chunk : MonoBehaviour {
public static int Size = 16;
@tsaodown
tsaodown / Chunk-editor.cs
Last active May 18, 2016 06:30
DerpCraft - Building a MineCraft Clone in Unity - Voxel Terrain Chunks | Full code available at https://git.io/vrlNO
using UnityEditor;
using UnityEngine;
using Utilities;
[RequireComponent(typeof(MeshFilter))]
[RequireComponent(typeof(MeshRenderer))]
[RequireComponent(typeof(MeshCollider))]
public class Chunk : MonoBehaviour {
@tsaodown
tsaodown / INoise2DGenerator.cs
Created May 18, 2016 05:08
DerpCraft - Building a MineCraft Clone in Unity - Noisemap Generation | Full code available at https://git.io/vrl5m
using UnityEngine;
using Utilities;
public interface INoise2DGenerator {
float[,] GenerateNoise(Vector2 position, Vector2Int dimensions);
}
@tsaodown
tsaodown / Block.cs
Created May 17, 2016 21:45
DerpCraft - Building a MineCraft Clone in Unity - Blocks | Full code available at https://git.io/vrlqL
using UnityEngine;
using Utilities;
public class Block {
public virtual MeshData GetBlockData(Vector3Int position,
MeshData collectedMeshData) {
collectedMeshData = FaceDataTop(position, collectedMeshData);
collectedMeshData = FaceDataBottom(position, collectedMeshData);
collectedMeshData = FaceDataNorth(position, collectedMeshData);
@tsaodown
tsaodown / Block.cs
Created May 17, 2016 21:31
DerpCraft - Building a MineCraft Clone in Unity - Textured Blocks | Full code available at https://git.io/vrlIk
using UnityEngine;
using Utilities;
public class Block {
// Enumerator representing the face of the block.
public enum FaceDirection {
North,
// +z
South,
@tsaodown
tsaodown / AirBlock.cs
Last active May 17, 2016 22:46
DerpCraft - Building a MineCraft Clone in Unity - Chunks | Full code available at https://git.io/vrlT3
using Utilities;
public class AirBlock : Block {
static Block instance;
public static Block Instance {
get {
if (instance == null) {
instance = new AirBlock();