Skip to content

Instantly share code, notes, and snippets.

View iRynoh's full-sized avatar
🎉
Grooving!

Percy Astocaza iRynoh

🎉
Grooving!
View GitHub Profile
@iRynoh
iRynoh / webstorm64.vmoptions
Created April 7, 2018 16:36 — forked from bitclaw/webstorm64.vmoptions
Jetbrains Custom VM Options Optimized Configuration: Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
# 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
@iRynoh
iRynoh / cls.get.php
Last active May 9, 2018 20:52
csl.get
<?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',
@iRynoh
iRynoh / CSL_Scraper.php
Last active May 11, 2018 15:10
CSL_Scraper.php
<?php
require 'Scraper.class.php';
class CSL_Scraper extends Scraper
{
public $domain;
public $referer;
@iRynoh
iRynoh / class.php
Last active September 6, 2018 16:28
<?php
public function verify() {
$statistic = $this->getStatistic();
if ($statistic) {
if ($statistic->getTotalCount() === 0) {
$incident = IncidentFactory::CtIncident();
$incident->registerIncident();
} else {
@iRynoh
iRynoh / cloudSettings
Created February 7, 2019 19:16
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-02-07T19:16:21.540Z","extensionVersion":"v3.2.4"}
@iRynoh
iRynoh / cloudSettings
Last active February 11, 2019 13:39
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-02-11T13:39:31.283Z","extensionVersion":"v3.2.4"}
@iRynoh
iRynoh / answer.php
Created February 12, 2019 19:47
answer #1
<?php
$newData = array_filter($data, function ($value) {
$monthNumber = DateTime::createFromFormat('Y-m-d', $value->created_at)->format('n');
return $monthNumber === '7';
});
@iRynoh
iRynoh / answer.php
Created February 12, 2019 19:54
answer #2
<?php
$productNames = $data->pluck('product_name')->toArray();
@iRynoh
iRynoh / example.json
Last active February 21, 2019 17:53
Error
{
"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"
}
@iRynoh
iRynoh / code.php
Created March 19, 2019 16:35
String
<?php
function checkIfFirstCharIsUpperCase(string $string)
{
return preg_match('/[A-Z]$/', $string[0]) == true;
}