Skip to content

Instantly share code, notes, and snippets.

View GeeH's full-sized avatar

Gary Hockin GeeH

View GitHub Profile
[xdebug]
zend_extension="/usr/local/opt/php70-xdebug/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_connect_back=on
namespace PHPSTORM_META {
$STATIC_METHOD_TYPES = [
\Interop\Container\ContainerInterface::get('') => [
'' == '@',
],
];
}
@GeeH
GeeH / user-story-mapping.md
Created January 11, 2016 19:27 — forked from elstamey/user-story-mapping.md
an abstract for a talk I'd like to present

Working in a cluttered work environment is really distracting. We have a lot of potential features to deliver, and we don't completely trust our users to prioritize them. Wanting to help these users we begin to override some decisions. At some point before the project ends, we realize that we implemented a feature based on bad information. As much as we want to blame this on the user, it is not their fault.

Changing the way we talk to our users about their needs, we can avoid some of these pitfalls. We will put more of these decisions and priorities in the hands of the users and set reasonable expectations with them. We will investigate how to drop the idea of minimum viable product and instead deliver the most valuable features first. We will prioritize user stories by the objectives they solve.

Possible titles:

  • Forget the MVP, Deliver the Most Valuable Features! (is MVP widely known enough as Minimum Valuable Product?)

  • Value-Driven Development

<?php
class MyControllerTest extends ControllerTest
{
public function setUp()
{
$this->controller('Application\Controller\IndexController');
}
public function testIndexAction()
@GeeH
GeeH / README.md
Last active August 29, 2015 14:07 — forked from igorw/README.md

kayladnls/machine-forget

A simple machine forgetting library.

Example

Here is an example of how you can instruct the machine to forget the answer:

Keybase proof

I hereby claim:

  • I am GeeH on github.
  • I am geeh (https://keybase.io/geeh) on keybase.
  • I have a public key whose fingerprint is F376 F611 64B5 4950 F6C6 EF27 B811 9D4E 8B57 BF03

To claim this, I am signing this object:

<?php
use Zend\Http\Request;
use Zend\Http\Response;
use Zend\Mvc\Controller\PluginManager;
use Zend\Mvc\MvcEvent;
use Zend\Mvc\Router\RouteMatch;
/**
* Created by Gary Hockin.
@GeeH
GeeH / SomeForm.php
Last active August 29, 2015 14:06 — forked from anonymous/SomeForm.php
/**
* @Annotation\Attributes({"enctype":"multipart/form-data})
*/
class SomeForm
{
.......
/**
* @Annotation\Type("file")
* @Annotation\Options({"label":"File"})
<?php
// Clevertext db update script.
// Gary Hockin .. gary --at-- garyhockin --dot-- co --dot-- uk
// June 2006
// input stuff
// extract the GET values into variables
extract($_GET);
// connect to database
@GeeH
GeeH / IndexController.php
Created March 31, 2014 07:11
Logger functions not playing together??? ZF2 core functions.
<?php
namespace Application\Controller;
use Zend\Log\LoggerAwareInterface;
use Zend\Log\LoggerAwareTrait;
use Zend\Mvc\Controller\AbstractActionController;
// Logger Aware Interface applies initialiser that injects logger automagically
class IndexController extends AbstractActionController implements LoggerAwareInterface