This file contains hidden or 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
var start = new Date().getTime(), | |
checkpoint = null, | |
delay = 1000, | |
end = start + (delay * 2), | |
current; | |
setTimeout(function () { | |
if ((current = new Date().getTime()) < end) { | |
console.log('we\'re borked'); | |
} else { |
This file contains hidden or 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
dnsmasq: | |
image: andyshinn/dnsmasq:2.76 | |
ports: | |
- 10053:53/tcp | |
- 10053:53/udp | |
command: | |
- -W | |
- _http._tcp.router.lipe-routing.svc.cluster.local,pod-1,80 | |
- -W | |
- _http._tcp.router.lipe-routing.svc.cluster.local,pod-2,80 |
This file contains hidden or 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
CompletableFuture<Map<UUID, Collection<SuperCow>> method() { | |
CompletableFuture<Collection<SuperCow>> starter = callProvider(); | |
return starter | |
.thenApply(c -> c.stream().collect(Collectors.groupingBy(SuperCow::getGroupingId))) // Map<UUID, List<SuperCow>> | |
.thenApply(m -> m.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue))); // FFUUUUUUUUUU | |
} |
This file contains hidden or 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
if (stem.getAttributeA() != null) { | |
entity.setAttributeA(stem.getAttributeA()); | |
} | |
if (stem.getAttributeB() != null) { | |
entity.setAttributeB(stem.getAttributeB()); | |
} | |
if (stem.getAttributeC() != null) { | |
entity.setAttributeC(stem.getAttributeC()); | |
} | |
if (stem.getAttributeD() != null) { |
This file contains hidden or 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 WP_Form implements WP_Form_Aggregate, WP_Form_Attributes_Interface | |
{ | |
public function getElements() | |
{ | |
$elements = []; | |
foreach ($this->elements as $element) { | |
$dataBuffer = $element->getAttributes(); | |
if ($element instanceof WP_Form_Aggregate) { | |
$dataBuffer['elements'] = $element->getElements(); |
This file contains hidden or 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 AcmeBundle\Controller; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Site\RsrSecurityBundle\Service\RsrNwlSystem; | |
class ServiceController extends Controller | |
{ | |
public function serviceRelatedAction() |
This file contains hidden or 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 Application | |
{ | |
private $cache; | |
private $filesystem; | |
public function __construct(CacheInterface $cache, FilesystemInterface $filesystem) | |
{ | |
$this->cache = $cache; | |
$this->filesystem = $filesystem; |
This file contains hidden or 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
/composer | |
/composer.phar | |
/composer.lock | |
/vendor | |
.idea | |
.project | |
.settings | |
nbproject |
This file contains hidden or 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
{ | |
"name": "yiisoft/yii2-app-basic", | |
"description": "Yii 2 Basic Application Template", | |
"keywords": ["yii2", "framework", "basic", "application template"], | |
"homepage": "http://www.yiiframework.com/", | |
"type": "project", | |
"license": "BSD-3-Clause", | |
"support": { | |
"issues": "https://github.com/yiisoft/yii2/issues?state=open", | |
"forum": "http://www.yiiframework.com/forum/", |
This file contains hidden or 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
There was 1 error: | |
--------- | |
1) SeparateProcessTest::testMe | |
PHPUnit_Framework_Exception: PHP Fatal error: Call to a member function run() on a non-object in /home/etki/Workspace/PHP/environment/vendor/codeception/codeception/src/Codeception/TestCase/Test.php on line 30 | |
PHP Stack trace: | |
PHP 1. {main}() -:0 | |
PHP 2. __phpunit_run_isolated_test() -:626 | |
PHP 3. PHPUnit_Framework_TestCase->run() -:369 | |
PHP 4. PHPUnit_Framework_TestResult->run() /home/etki/Workspace/PHP/environment/vendor/phpunit/phpunit/src/Framework/TestCase.php:711 |