array(4) {
'array_key_exists' =>
double(0.76186203956604)
'isset' =>
double(0.78142905235291)
'noCheck' =>
double(0.80179715156555)
'empty' =>
double(0.80491018295288)
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
/** | |
* GoogleMaps Reviews Scrapper | |
* Working with gMaps in french | |
* | |
* To execute from browser console after loading a reviews page ➜ | |
* eg : https://www.google.fr/maps/place/Tour+Eiffel/@48.8583701,2.2780018,15z/data=!4m7!3m6!1s0x47e66e2964e34e2d:0x8ddca9ee380ef7e0!8m2!3d48.8583701!4d2.2944813!15sCgt0b3VyIGVpZmZlbFoNIgt0b3VyIGVpZmZlbJIBE2hpc3RvcmljYWxfbGFuZG1hcmvgAQA!16zL20vMDJqODE?entry=tts&g_ep=EgoyMDI1MDEyOS4xIPu8ASoASAFQAw%3D%3D | |
* | |
* Note : Google will automatically prevents you to load the 2xx xxx reviews from a page. | |
* To extract last one, prefiltered the list. | |
*/ |
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
javascript: (function () { function getIndentationLevel(row) { | |
const indentationDiv = row.querySelectorAll(".js-indentation"); | |
return indentationDiv.length; | |
} | |
function getParentRow(row) { | |
const currentIndentLevel = getIndentationLevel(row); | |
console.log(currentIndentLevel); | |
let previousRow = row.previousElementSibling; | |
while (previousRow) { |
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\Template\Partial; // src/Template/Partial/TooltipTpl.php | |
use League\Plates\Template\Template; | |
use League\Plates\Template\TemplateClassInterface; | |
use App\Plates\AbstractTemplate; | |
use App\Plates\TemplateExtension; | |
use function Symfony\Component\String\u; |
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
find . -type f -name "*.php" -exec sed -i '1i\ | |
<?php\ | |
\ | |
use My\\App\\Service\\PlatesTemplate;\ | |
\ | |
/**\ | |
* @var PlatesTemplate $this\ | |
*/\ | |
\ | |
?>' {} \; |
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> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Optimiser sa title avec une taille parfaite !</title> | |
</head> | |
<input type=text placeholder="..." id=title> <div id=titleWidth></div> | |
<style> | |
#titleWidth { | |
font-size: 20px; | |
margin:0; |
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> | |
<head> | |
<meta charset="UTF-8"> | |
<style> | |
h3 { | |
font-size: 20px; | |
margin:0; | |
padding:0; | |
border:0; | |
font-weight: 400; |
Create a new admin extending and overriding the default one. https://github.com/PiedWeb/CMS/blob/master/src/Admin/PageAdmin.php
$formMapper->add('mainContent', CKEditorType::class
Change the service with your new page admin class :
piedweb.admin.page:
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
// Share for educationnal purpose only | |
// -------------------- | |
// To remove ads or sidebar from twitter, just inject this code (via cjs for example) : | |
// Current code work for the new Twitter TL from you favorite navigator (january 2019) | |
// -------------------- | |
function removeSidebar() { | |
var elem = document.querySelector('[data-testid=sidebarColumn]'); | |
if (elem) elem.parentNode.removeChild(elem); | |
} |
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
composer require piedweb/github | |
php render.php |
NewerOlder