This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Phing task to generate a Zend Framework style autoloader classmap file | |
* | |
* This task requires ZF 2.x to be in your include_path. You can run phing like | |
* so to enforce this: | |
* | |
* $ export PHP_COMMAND="php -d include_path=.:<path to zf library>:<path to pear>" | |
* $ phing ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\Event; | |
use Zend\EventManager\StaticEventManager, | |
Zend\EventManager\EventDescription, | |
Application\Event\Exception\ForbiddenException, | |
Application\Event\Exception\UnexpectedValueException, | |
Humus\Di\Locator; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$config; // array with di configuration | |
if (APPLICATION_ENV == 'development' || !class_exists('Application\Context') { | |
$di = new Zend\Di\Di($config); | |
$generator = new Generator($di); | |
$generator->setNamespace('Application') | |
->setContainerClass('Context'); | |
$file = $generator->getCodeGenerator(); | |
$file->setFilename(__DIR__ . '/../Application/Context.php'); | |
$file->write(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application; | |
use Zend\Di\Di; | |
class Context extends Di | |
{ | |
public function newInstance($name, array $params = array(), $isShared = true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// our test cases | |
interface A {} | |
class B implements A {} | |
class C extends B {} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream jenkins { | |
server 127.0.0.1:8081 fail_timeout=0; | |
} | |
upstream gitlab { | |
## Uncomment if you have set up puma/unicorn to listen on a unix socket (recommended). | |
server unix:/home/git/gitlab/tmp/sockets/gitlab.socket; | |
## Uncomment if puma/unicorn are configured to listen on a tcp port. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script rotates the screen and touchscreen input 90 degrees each time it is called, | |
# also disables the touchpad, and enables the virtual keyboard accordingly | |
# by Ruben Barkow: https://gist.github.com/rubo77/daa262e0229f6e398766 | |
#### configuration | |
# find your Touchscreen and Touchpad device with `xinput` | |
TouchscreenDevice='ATML1000:00 03EB:8A10' | |
TouchpadDevice='SYNA2B22:00 06CB:2714' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace My; | |
use League\Fractal\Pagination\CursorInterface; | |
use League\Fractal\Pagination\PaginatorInterface; | |
use League\Fractal\Resource\ResourceInterface; | |
use League\Fractal\Serializer\JsonApiSerializer; | |
class CustomJsonApiSerializer extends SerializerAbstract |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
src | |
App | |
Commanding | |
Container | |
Querying | |
Rbac | |
BoundedContext1 | |
Container | |
Infrastructure | |
Model |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that +prolic is my blockchain ID. https://onename.com/prolic |
OlderNewer