Skip to content

Instantly share code, notes, and snippets.

View moaxaca's full-sized avatar
🕊️
Coding for Freedom

Matthew Oaxaca moaxaca

🕊️
Coding for Freedom
View GitHub Profile
@moaxaca
moaxaca / dependency-inversion-container.php
Last active September 11, 2017 20:34
PHP - Dependency Inversion Container
<?php
/**
* Class DIC - Dependency Inversion Container
* - Lazy Loads all objects into existence
*/
class DIC
{
/**
* Holds all callable methods to create our objects
* @var array
@moaxaca
moaxaca / IterativeTreeSearches.java
Created May 4, 2020 18:44
Iterative Tree Searches
package scratch;
import java.util.Deque;
import java.util.LinkedList;
import java.util.List;
import java.util.function.Consumer;
public class IterativeTreeSearches {
static final public class Node<T> {
T value;