Skip to content

Instantly share code, notes, and snippets.

View justisr's full-sized avatar
💭
Processing

Justis R justisr

💭
Processing
  • BuiltByBit
  • United States
View GitHub Profile
@justisr
justisr / Minifier.java
Last active January 25, 2020 17:43
Strip comments and minify your JSON strings with O(n) performance
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
public final class Minifier {
@bondolo
bondolo / Thing.java
Last active June 5, 2018 07:24
An investigation of inner class behaviour. Prints information about a class and it's enclosing class.
/**
* public domain
*
* https://creativecommons.org/publicdomain/zero/1.0/
*
*/
package test;
import java.lang.reflect.Modifier;
import java.util.concurrent.Callable;
@jdigger
jdigger / Reflection.java
Created January 2, 2015 23:52
Functions for working with MethodHandles in Proxy
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
/**
* Functions for doing reflection.
@mkotb
mkotb / NameTable.md
Last active January 2, 2021 00:24
NameTable
Skype Name Name on Bukkit Name IRL
heycallmethemezand mazentheamazin Mazen
troll.dude.3 xTrollxDudex Not Given
live:noobhelper KingFaris11 Faris
live:business_faris KingFaris11 Faris
mattrick16 mattrick Matthew
dryman11 (lol) Quantum64 Dylan
pippintook11 calebbfmv Tim
vilsol Vilsol Not Given
@dsci
dsci / gist:1347672
Created November 8, 2011 12:52
Delete commits from repository.
# First, check out the commit you wish to go back to (get sha-1 from git log)
git reset --hard 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a
# Then do a forced update.
git push origin +9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a^:develop
# Push specific commit
git push origin 9d3c3a0caa7f7b35ef15adb96fc80fcbb59ac72a:develop -f