Skip to content

Instantly share code, notes, and snippets.

@Coderlane
Coderlane / copy_lwjgl.sh
Last active December 24, 2019 05:27
Copy lwjgl binaries into the linux natives jar file for minecraft.
#!/bin/bash
# This script will copy the newly compiled lwjgl.so and libopenal.so
# from the specified directory into the correct minecraft jar file.
# It will then compute and update the correct sha1sum.
#
# First Arguement (Required):
# Path to the directory containing:
# lwjgl.so and libopenal.so
#
@Coderlane
Coderlane / functions.go
Last active August 29, 2015 14:01
gccgo hackery
package main
// A small function in Go to try
// Stuff like "go" and "make" or "new" don't really work.
// Neither do imports and most fun things.
func DoSomething() int {
sum := 0
for i := 0; i < 100; i++ {
sum += i
}
@Coderlane
Coderlane / interview.md
Last active December 20, 2015 23:39
Interview Questions

Draw a UML diagram of a previous project

  • Class Diagram
  • Flowy Diagram

Describe the difference between TCP and UDP.

  • Why choose one over the other

String Questions

Remove character from a string inplace

@Coderlane
Coderlane / makefile
Last active December 20, 2015 06:29
Generic Makefile
CC=gcc
CFLAGS=-c -Wall -std=c99
LIBS=
SRC_DIR=src
SOURCES=$(wildcard $(SRC_DIR)/*.c)
OBJ_DIR=obj
OBJECTS=$(patsubst src/%.c,obj/%.o,$(SOURCES))