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
# custom WebStorm VM options, this configuration also works well for other IDEs like phpstorm, pycharm..etc. | |
-Xms1024m | |
-Xmx2048m | |
-XX:ReservedCodeCacheSize=240m | |
-XX:+UseConcMarkSweepGC | |
-XX:SoftRefLRUPolicyMSPerMB=50 | |
-ea | |
-Dsun.io.useCanonCaches=false | |
-Djava.net.preferIPv4Stack=true |
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('req/print_r2.php'); | |
$html = file_get_contents('req/csl-get-no_phone.html'); | |
//$html = file_get_contents('req/csl-get.html'); | |
$keys = [ | |
'date', | |
'title', | |
'vin', |
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 'Scraper.class.php'; | |
class CSL_Scraper extends Scraper | |
{ | |
public $domain; | |
public $referer; |
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 | |
public function verify() { | |
$statistic = $this->getStatistic(); | |
if ($statistic) { | |
if ($statistic->getTotalCount() === 0) { | |
$incident = IncidentFactory::CtIncident(); | |
$incident->registerIncident(); | |
} else { |
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
{"lastUpload":"2019-02-07T19:16:21.540Z","extensionVersion":"v3.2.4"} |
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
{"lastUpload":"2019-02-11T13:39:31.283Z","extensionVersion":"v3.2.4"} |
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 | |
$newData = array_filter($data, function ($value) { | |
$monthNumber = DateTime::createFromFormat('Y-m-d', $value->created_at)->format('n'); | |
return $monthNumber === '7'; | |
}); |
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 | |
$productNames = $data->pluck('product_name')->toArray(); |
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
{ | |
"error": "net::ERR_TUNNEL_CONNECTION_FAILED at https://www.autotrader.ca/a/ford/focus/innisfil/ontario/19_10974009_/?showcpo=ShowCpo&ncse=no&orup=1_53_53&pc=L3V%201C8&sprx=40" | |
} |
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 checkIfFirstCharIsUpperCase(string $string) | |
{ | |
return preg_match('/[A-Z]$/', $string[0]) == true; | |
} |
OlderNewer