Skip to content

Instantly share code, notes, and snippets.

View mlowen's full-sized avatar

Mike Lowen mlowen

View GitHub Profile
@mlowen
mlowen / factory.js
Created May 13, 2022 23:04
Original Factory Builder Implementation
function dependantProperty(func, deps) {
func.dependencies = deps;
return func;
}
function build(factory, overrides = {}) {
let keys = Object.keys(factory);
let result = {};
do {
#! /bin/bash
set -e
if [[ ! -z $(which rr) ]]; then
echo rr is already installed, bailing now.
exit 1
fi
if [[ -z $(which java) ]]; then
@mlowen
mlowen / makefile
Created November 3, 2015 03:16
Simple generic makefile
APPNAME = test
SRCDIR = src
OBJDIR = obj
BINDIR = bin
SRC = $(shell find $(SRCDIR) | grep .cc)
OBJ = $(patsubst $(SRCDIR)/%.cc, $(OBJDIR)/%.o, $(SRC))
.PHONEY: all clean init