Skip to content

Instantly share code, notes, and snippets.

View trq's full-sized avatar

Tony R Quilkey trq

  • thorpesystems
  • Sydney, Australia
View GitHub Profile
@trq
trq / gist:1600497
Created January 12, 2012 13:23
A simple PHP DI Container and Manager
<?php
class Foo
{
private $name;
public function __construct($name)
{
echo "Foo instantiated";
$this->name = $name;
Host remote
HostName some-remote-server.com
Port 1234
sudo su gitolite
gl-setup /tmp/trq.pub
scp ~/.ssh/id_rsa.pub remote:/tmp/trq.pub
sudo apt-get && sudo apt-get install
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.
@trq
trq / bootstrap-example.php
Created June 20, 2011 11:42
Proem Bootstrap Example
<?php
/**
* This is just a running example of what a bootstrap file
* might look like to get an application built on top of
* Proem up and running.
*
* It's a good demo that gives me a design to work toward.
*/