Skip to content

Instantly share code, notes, and snippets.

View joecheatham's full-sized avatar

Joe Cheatham joecheatham

View GitHub Profile
@joecheatham
joecheatham / SimpleDI.java
Last active August 14, 2018 07:11
simple and inefficient java "dependency injection" utility
import java.lang.reflect.Constructor;
import java.util.HashMap;
import java.util.Map;
public class SimpleDI {
private static final SimpleDI INSTANCE = new SimpleDI();
private final Map <Class<?>, Object> classMap = new HashMap <>();
public static void init(Object...objects) {
@joecheatham
joecheatham / crosh_settings.js
Created August 16, 2015 07:24
Custom settings for Chrome OS Crosh shell
// Enable bold
term_.prefs_.set('enable-bold', true);
// Custom Colors
term_.setBackgroundColor("#242424");
term_.setForegroundColor("#FFFFFF");
term_.prefs_.set('color-palette-overrides', [
'#000000',
'#C75646',
'#8EB33B',