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 | |
declare(strict_types=1); | |
use Intercom\IntercomClient; | |
use Intercom\IntercomConversations; | |
require_once __DIR__.'/../vendor/autoload.php'; | |
final class ExtendedIntercomConversations extends IntercomConversations |
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 | |
declare(strict_types=1); | |
namespace Zable\Rector\Rules; | |
use PhpParser\Node; | |
use PhpParser\Node\Attribute; | |
use PhpParser\Node\AttributeGroup; | |
use PhpParser\Node\Name\FullyQualified; |
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 | |
declare(strict_types=1); | |
require_once __DIR__ . '/../vendor/autoload.php'; | |
class ParentClass | |
{ | |
private $property = 'parent private property'; | |
} |
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
# dumps must be in ./xhprof folder, named like uniqid() . 'appname.xhprof'; | |
# use tideways_xhprof extension to generate them https://github.com/tideways/php-xhprof-extension | |
docker run --rm -p 81:8080 -v $(pwd)/xhprof:/mnt/files/private/xhprof -d --name xhprof wodby/xhprof |
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
void loop() { | |
SetActionLEDOn(); | |
if (WiFi.status() == WL_CONNECTED) { | |
String response = mySignal.getJsonHTTP(ApiHost, "/check_this_minute_hotline.php"); | |
Serial.println(response); |
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
phantom: | |
address: "1.2.3.4:80" # [Target's address]:[target's port] | |
ssl: false | |
header_http: "1.1" | |
headers: | |
- "[Host: example.com]" | |
- "[Connection: close]" | |
uris: | |
- "/" | |
- "/reviews" |
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 declare(strict_types=1); | |
/** | |
* @Revs(10000) | |
* @Iterations(3) | |
* @Warmup(1) | |
* @BeforeMethods({"init"}) | |
*/ | |
class LoopConditionalBench | |
{ |
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 declare(strict_types=1); | |
/** | |
* @Revs(1000000) | |
* @Iterations(1000) | |
* @Warmup(10) | |
* @BeforeMethods("init") | |
* @OutputTimeUnit("microseconds", precision=1) | |
*/ | |
class MethodCallBench |
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 | |
$bank->withdrawMoney(1000, 'Docler Holding'); | |
$bank->sendMoney(200, 'John'); | |
$bank->sendMoney(200, 'Developer'); | |
$bank->sendMoney(600, 'Miranda'); |
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 Ivastly\GoAopHelloWorld\BankingSystem; | |
use League\CLImate\CLImate; | |
class Bank | |
{ | |
/** @var CLImate */ | |
private $climate; |
NewerOlder