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
{ | |
"entities": { | |
"snippets": { | |
"aJOTlE1K90k": { | |
"publishedAt": "2018-05-31T04:00:00.000Z", | |
"channelId": "UCN1hnUccO4FD5WfM7ithXaw", | |
"title": "Maroon 5 - Girls Like You ft. Cardi B", | |
"description": "\"Girls Like You” is out now. http://smarturl.it/GLY For more, visit: https://www.facebook.com/maroon5 https://twitter.com/maroon5 ...", | |
"thumbnails": { | |
"default": { |
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
[ | |
{ | |
"kind": "youtube#searchResult", | |
"etag": "\"XI7nbFXulYBIpL0ayR_gDh3eu1k/iecMlihzF4qEDkzXsB6TUt81Oqw\"", | |
"id": { | |
"kind": "youtube#video", | |
"videoId": "M4ZoCHID9GI" | |
}, | |
"snippet": { | |
"publishedAt": "2018-04-12T16:00:04.000Z", |
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 | |
require_once('vendor/autoload.php'); | |
use GuzzleHttp\Client as GuzzleClient; | |
use GuzzleHttp\Promise as GuzzlePromise; | |
//https://stackoverflow.com/a/32751004/3787302 | |
$start_time = microtime(TRUE); | |
$client = new GuzzleClient(['timeout' => 12.0]); // see how i set a timeout | |
$requestPromises = []; | |
$sitesArray = [ |
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 app\models\search; | |
use Yii; | |
use yii\base\Model; | |
use yii\data\ActiveDataProvider; | |
use app\models\Client; | |
use yii\db\Expression; |
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 app\models\search; | |
use Yii; | |
use yii\base\Model; | |
use yii\data\ActiveDataProvider; | |
use app\models\Customer; | |
use yii\db\Expression; |
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 yii\helpers\Html; | |
use yii\grid\GridView; | |
/* @var $this yii\web\View */ | |
/* @var $searchModel app\models\search\CustomerSearch */ | |
/* @var $dataProvider yii\data\ActiveDataProvider */ | |
$this->title = 'Customers'; |
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
[ | |
0 => [ | |
'field_id' => '25' | |
'header' => 'Consumption Scaling' | |
'content' => '<p>Choose whether or not to scale the consumption profile of your customer.</p> | |
' | |
'created_at' => '2015-08-19 03:44:37' | |
'updated_at' => '2015-08-19 03:44:37' | |
] | |
1 => [ |
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
return [ | |
'basePath' => dirname(__DIR__), | |
'bootstrap' => ['log'], | |
'controllerNamespace' => 'frontend\controllers', | |
'language' => 'en-AU', | |
'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', | |
'extensions' => require(__DIR__ . '/../../vendor/yiisoft/extensions.php'), | |
'defaultRoute' => 'site/dashboard', | |
'components' => [ | |
'assetManager' => [ |
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' => [ | |
'engine' => '1' | |
'short_open_tag' => '' | |
'precision' => '14' | |
'output_buffering' => '4096' | |
'zlib.output_compression' => '' | |
'implicit_flush' => '' | |
'unserialize_callback_func' => '' | |
'serialize_precision' => '17' |
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
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password'; | |
FLUSH PRIVILEGES; |
NewerOlder