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 Promise { | |
private $resolvedStack = []; | |
private $catches = []; | |
public function then(callable $resolved): Promise | |
{ | |
array_push($this->resolvedStack, $resolved); | |
} | |
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 | |
// An Anonymous Class or Normal Classes | |
$class = new class { | |
public function method() { | |
echo 'In a Class!', PHP_EOL; | |
} | |
}; | |
// We can write this ... 🤔 | |
$arrayLikeCallable = [new $class, 'method']; |
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
gist token=1d177d749a5d57a8676fa77f737892c285eb1376 | |
gist id=a53f646ca33cd140560d78eeed5a9c5b |
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
@font-face { | |
font-family: "Brandon Text"; | |
src: url(/assets/fonts/BrandonText-Regular.woff2); | |
} | |
@font-face { | |
font-family: Brandon Text; | |
src: url("/assets/fonts/BrandonText-Light.woff2") format("woff2"), url("/assets/fonts/BrandonText-Light.woff") format("woff"); | |
font-weight: 300; | |
font-style: normal |
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 | |
/** | |
* Copyright © EcomDev B.V. All rights reserved. | |
* See LICENSE.txt for license details. | |
*/ | |
declare(strict_types=1); | |
$port = $argv[1]; | |
$serverName = $argv[2]; |
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
{ | |
"event": "charge.success", | |
"data": { | |
"id": 84, | |
"domain": "test", | |
"status": "success", | |
"reference": "9cfbae6e-bbf3-5b41-8aef-d72c1a17650g", | |
"amount": 50000, | |
"message": null, | |
"gateway_response": "Approved", |
- Tools Build on React PHP: https://github.com/reactphp/reactphp/wiki/Users
- Laravel Swoole
- Swoft Framework (Built on Swoole)
- Async Articles
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
{ | |
"price": 21975, | |
"customization": { | |
"id": 5, | |
"name": "Cooo", | |
"features": [ | |
{ | |
"id": 36, | |
"name": "Colar", | |
"unit": "dB", |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)