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
//Instead this | |
{ | |
data: () => { | |
return { | |
id: 1, | |
name: "John Snow" | |
} | |
} | |
} |
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 | |
/** | |
* PHP7 OF GTFO | |
*/ | |
function request_async(array $urls, callable $callback){ | |
$multiHandle = curl_multi_init(); | |
$handles = []; | |
foreach($urls as $key => $url){ | |
$ch = curl_init($url); |
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 | |
namespace Yarkhan\Orm; | |
use Exception; | |
use PDO; | |
/** | |
* Nosso humilde e simples ORM. Que não se torne um pesadelo. | |
* Funcionalidades descaradamente copiadas de outros ORM's | |
*/ | |
class Model{ | |
//Instância PDO |
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 | |
namespace Yarkhan\SessionManager; | |
class Session{ | |
//The key on $_SESSION to store data | |
static $sess_name = 'YarkhanSessionManager'; | |
private static $sess; | |
static function isActive() | |
{ |