Skip to content

Instantly share code, notes, and snippets.

View cmstone's full-sized avatar

Chris Stone cmstone

View GitHub Profile
@cmstone
cmstone / 0_reuse_code.js
Created July 26, 2016 14:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am cmstone on github.
  • I am cmstone (https://keybase.io/cmstone) on keybase.
  • I have a public key whose fingerprint is FC01 BA56 675B EC13 2049 2706 5593 2815 C672 592B

To claim this, I am signing this object:

@cmstone
cmstone / tim.php
Created July 22, 2013 16:54
Registry Pattern Example
<?php
class Registry {
private $registry = array();
private static $instance = null;
public static function getInstance() {
if($this->instance === null) {
$this->instance = new Registry();
}