Skip to content

Instantly share code, notes, and snippets.

View gjroelofs's full-sized avatar

Gijs-Jan Roelofs gjroelofs

View GitHub Profile
/* Hide description badge */
.badge.is-icon-only {
display: none;
}
/* Make ID smaller */
.card-short-id.hide, .card-short-id {
display: inline-block !important;
font-size: 10px;
font-weight: bold;
public class FooAttribute : Attribute {}
public class Target {
[Foo]
public void Interesting(){}
public void NotInteresting(){}
}
@gjroelofs
gjroelofs / UnityErrors.cs
Created January 16, 2016 14:53
Internal Compiler Errors in Unity
public static class ExtensionTests {
public static void Test(this object target, float a, float b = 1, float c = 2, float d = 3) { }
}
object target = null;
// Compiles
target.Test(0);
public class MyGdxGame extends ApplicationAdapter {
public PerspectiveCamera cam;
public ModelBatch modelBatch;
public Model model;
public ModelInstance instance;
@Override
public void create() {
modelBatch = new ModelBatch();