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
<html><body> | |
https://www.google.com.br/maps/vt/data=RfCSdfNZ0LFPrHSm0ublXdzhdrDFhtmHhN1u-gM,PLfSc0s0T88nx9pxRSSGm-FPfkuEsApOVt7FjMz0eBQHr1OCZDiSzWi1hXoKTkT9Ho6TNY1Q28BOnbIaf23MinTxLZ3WB4yRgTWtK0VLQ_bkOVcYrLY9WbXABdwnmwi8gRS7J-T9clS_Y8nL0kTI6bvP9KB01g0kml16yWiCvBkR6ZMjqdhgLZgC74BsJ8w4tH41HXZoEzPXthnQ0AZ_3MLDdLfOZRoewztoyhltqxXLlDm3SVVXiY7B2tIHSsg | |
</body></html |
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 | |
use Illuminate\Database\Capsule\Manager as Capsule; | |
$capsule = new Capsule; | |
$configDatabase = require_once __DIR__ . '/config/global.php'; | |
$capsule->addConnection($configDatabase['database']['mysql']); | |
// Set the event dispatcher used by Eloquent models... (optional) |
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
1° */59 * * * 1-5 | |
2° * */1 * * 1-5 |
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 | |
/* | |
* contar numero de x a y | |
* utilizando operador ternario, é um IF que verifica a condição true ou false | |
* isset verifica se existe a variavel na memoria | |
*/ | |
$x = isset($argv[1]) ? $argv[1] : 0;//$argv é do php, ele fornece os valores passados para ao script/programa | |
$y = isset($argv[2]) ? $argv[2] : 10;//acessa o segundo parametro | |
/* |
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
/* | |
* Referencia: http://www.diogomatheus.com.br/blog/php/trabalhando-com-pdo-no-php/ | |
*/ | |
$pdo = new PDO("mysql:host=localhost;dbname=test", 'root', '', [ | |
PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8' | |
]); | |
/* | |
* tambem ha essa opção de configurar a conexão | |
*/ |