Skip to content

Instantly share code, notes, and snippets.

View thanhtutoo's full-sized avatar
🎯
Focusing

Than Htut Oo thanhtutoo

🎯
Focusing
View GitHub Profile
@maksadbek
maksadbek / golang-linked-list.go
Created April 27, 2016 21:43
golang linked list implementation
package main
import "fmt"
type Node struct {
prev *Node
next *Node
key interface{}
}
@orakaro
orakaro / IoC.php
Last active February 7, 2020 18:42
Sample of Inversion Of Control (IoC) and Singleton in PHP
<?php
class IoC {
protected static $registry = array();
protected static $shared = array();
// Register
public static function register($name, Closure $resolve)
{
static::$registry[$name] = $resolve;