Skip to content

Instantly share code, notes, and snippets.

View Dynom's full-sized avatar
👋
Hi, how are you today!

Mark van der Velden Dynom

👋
Hi, how are you today!
View GitHub Profile
@Dynom
Dynom / psr-autoloader.php
Created October 16, 2012 14:23
psr-autoloader.php
<?php
spl_autoload_register(
function ($className)
{
$className = ltrim($className, '\\');
$fileName = '';
$namespace = '';
if ($lastNsPos = strripos($className, '\\')) {
Catchable fatal error: Argument 1 passed to Zend_Controller_Action::__construct() must be an instance of Zend_Controller_Request_Abstract, none given, called in /mnt/hgfs/XX/vendor/Zend/Application/Resource/Frontcontroller.php on line 117 and defined in /mnt/hgfs/XX/vendor/Zend/Controller/Action.php on line 127
Call Stack:
0.0006 634352 1. {main}() /mnt/hgfs/XX/api/sally/public/index.php:0
0.0243 2038656 2. Zend_Application->bootstrap() /mnt/hgfs/XX/api/sally/public/index.php:12
0.0243 2038704 3. Zend_Application_Bootstrap_BootstrapAbstract->bootstrap() /mnt/hgfs/XX/vendor/Zend/Application.php:355
0.0243 2038704 4. Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap() /mnt/hgfs/XX/vendor/Zend/Application/Bootstrap/BootstrapAbstract.php:586
0.0965 7508232 5. Zend_Application_Bootstrap_BootstrapAbstract->_executeResource() /mnt/hgfs/XX/vendor/Zend/Application/Bootstrap/BootstrapAbstract.php:626
0.0965 7508464 6. Zend_Application_Resource_Frontcontroll
@Dynom
Dynom / composer.json
Created April 20, 2012 19:42
Series of files involved in the composer.phar stall
{
"require": {
"monolog/monolog": "1.0.*",
"guzzle/guzzle": "2.2.*",
"jms/serializer-bundle": "*",
"jms/metadata" : "*",
"twig/twig": "1.6.5",
"predis/predis": "0.7.2",
"doctrine/orm": "2.2.2",
"doctrine/common" : "2.2.2",
space: function() {
var rad = ((this.rotation-90) * Math.PI)/180,
dx = 10 * Math.cos(rad),
dy = 10 * Math.sin(rad);
var sprite = Ext.getCmp('theShip').surface.add({
type: 'path',
stroke: 'green',