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 | |
<<<CONFIG | |
packages: | |
- "kriswallsmith/buzz: ^0.15.0" | |
- "symfony/console: ^3.2@dev" | |
CONFIG; | |
// Find you token on https://api.slack.com/docs/oauth-test-tokens | |
use Buzz\Message\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
<?php | |
class Queue | |
{ | |
private $size; | |
private $onJobStart; | |
private $isJobRunning; | |
private $onJobFinish; | |
private $queued; |
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
-----BEGIN CERTIFICATE----- | |
MIIEjTCCAvWgAwIBAgIQcxWNVb9OEeS51am6xUW6FzANBgkqhkiG9w0BAQsFADBf | |
MR4wHAYDVQQKExVta2NlcnQgZGV2ZWxvcG1lbnQgQ0ExGjAYBgNVBAsMEWdyZWdv | |
aXJlQGdyZWdvaXJlMSEwHwYDVQQDDBhta2NlcnQgZ3JlZ29pcmVAZ3JlZ29pcmUw | |
HhcNMTkwMTIzMTAyNjMzWhcNMjkwMTIzMTAyNjMzWjBfMR4wHAYDVQQKExVta2Nl | |
cnQgZGV2ZWxvcG1lbnQgQ0ExGjAYBgNVBAsMEWdyZWdvaXJlQGdyZWdvaXJlMSEw | |
HwYDVQQDDBhta2NlcnQgZ3JlZ29pcmVAZ3JlZ29pcmUwggGiMA0GCSqGSIb3DQEB | |
AQUAA4IBjwAwggGKAoIBgQDz7qMbfPDd3tn8Q1RYMZBuQiQclK/MRi9mwOT78rnw | |
Oy520t2VqThX6Cp47JnSgmglOQK0LuY2YuYXIVAMusnC5M+oP6vRK2H4DIFq/9Pc | |
HVIgPDsbx1e4hyEodqDK0G8Q0sufvmWqHu7olvHpXIVSvp+1nGtOgkJ8kTkjrHWR |
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 Foobar | |
{ | |
public function success() | |
{ | |
return $this->box('doSuccess', false, '123', '456'); | |
} | |
public function fail() |
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
/composer.json | |
/composer.lock | |
/vendor/ |
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
/vendor/ |
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 | |
function waitContinue($message, $timeout, closure $timeoutCallback) { | |
$read = array(STDIN); | |
$write = null; | |
$except = null; | |
$answer = ''; | |
fwrite(STDOUT, trim($message) . ': '); |
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
public function foo() | |
{ | |
$bool = true; | |
a: | |
try { | |
$bool = $this->do() | |
} catch($e) | |
goto a; | |
} |
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 | |
sleep(10); | |
header('Content-Type: text/css'); | |
echo 'h1 { color: red; }'; |
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
/vendor/ |