Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View hans-d's full-sized avatar

Hans Donner hans-d

View GitHub Profile

Keybase proof

I hereby claim:

  • I am hans-d on github.
  • I am hansd (https://keybase.io/hansd) on keybase.
  • I have a public key whose fingerprint is 7760 3C69 BC29 36DC A554 0C2D BFC6 F1B5 7D14 4381

To claim this, I am signing this object:

@hans-d
hans-d / gist:3092353
Created July 11, 2012 18:54
benchmark setup
\\ bootstrap\connections
Connections::add('default', array(
'type' => 'database',
'adapter' => 'MySql',
'host' => 'localhost',
'login' => 'test',
'password' => 'test',
'database' => 'test',
'encoding' => 'UTF-8'
@hans-d
hans-d / gist:2938963
Created June 15, 2012 22:13
observer
<?php
namespace app\extensions\action;
/**
* Observer for the Observer pattern. When a subject sends a notification for an event,
* the registered listeners can act upon it.
*
* @author hdonner
*