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
c.Request.Format = "json" |
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
go get github.com/revel/revel | |
go get github.com/revel/cmd/revel | |
revel test github.com/icambridge/sitrep |
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 | |
class Notify | |
{ | |
/** | |
* @var SenderInterface | |
*/ | |
protected $sender; | |
public function __construct(SenderInterface $sender) |
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 | |
require_once __DIR__ . "/../vendor/autoload.php"; | |
$app = function (\React\Http\Request $request, \React\Http\Response $response) { | |
$data = new \React\Stream\BufferedSink(); | |
$request->pipe($data); | |
$data->promise()->then(function($data) use ($request, $response) { |
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
Scenario: Recognise outside of heirachry with line manager recognition approval and reward control table director approval | |
Given I am logged in to the system | |
And recognition approval is set to manual by line manager | |
And reward approval is set to manual with a budget control table of: | |
| Director | 100 | | |
| Plus one | 50 | | |
| Line Manager | 1 | | |
When I recognise someone outside of my heirarchy for "150" | |
Then the recognition status should be pending | |
And the reward status should control tabled |
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 | |
$person = $peopleRepo->getLatest(); | |
if (null === $person) { | |
$log->warn('No person found'); | |
} | |
$person->inviteToParty(); | |
// becomes |
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
<?hh | |
class Example { | |
private int $numberNine = 9; | |
} |
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 | |
define('WPSQT_VERSION', '1.2.1'); | |
$oldVersion = get_option('wpsqt_version'); | |
update_option('wpsqt_version',WPSQT_VERSION); | |
// Simple way of checking if an it's an update or not. | |
if ( !empty($oldVersion) && (version_compare($oldVersion, WPSQT_VERSION) < 0) ){ | |
// Do upgrade stuff. | |
} |
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
Icambridge\Entity\User: | |
id: encoder.super_duper_silly |
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
vagrant@php7dev:/vagrant$ php benchmark.php | |
time: 1.4532651901245 | |
memory usage: 6291456 | |
JMS - PHP 7 | |
--- | |
vagrant@php7dev:/vagrant$ nano benchmark.php | |
vagrant@php7dev:/vagrant$ php benchmark.php | |
time: 0.29000401496887 | |
memory usage: 4194304 | |
RAW - PHP 7 |
OlderNewer