Skip to content

Instantly share code, notes, and snippets.

View zanbaldwin's full-sized avatar
🦀

Zan Baldwin zanbaldwin

🦀
View GitHub Profile
<?php
const CLASS_PUBLIC = "";
const CLASS_PROTECTED = "\0*\0";
const CLASS_PRIVATE = "\0stdClass\0";
function create_class ($class) {
$class = (object)$class;
foreach ($class as $prop)
if ($prop instanceof Closure)
$prop->bindTo($class);
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@nogweii
nogweii / README.md
Created February 17, 2010 23:23
Add your ssh keys into memory only when you need to.