This file contains hidden or 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 | |
/** | |
* Scrapes free-proxy-list.net. | |
* | |
* Usage e.g.: | |
* Assume $fp = new FreeProxy; | |
* | |
* $fp->randomProxy(); // Returns a random proxy from anywhere around the world. | |
* $fp->setCountry('DE')->randomProxy(); // Returns a proxy from DE, if available. |
This file contains hidden or 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
const puppeteer = require('puppeteer'); | |
const fs = require('fs'); | |
const size = { | |
desktop: { width: 1600, height: 900 }, | |
mobile: { width: 360, height: 720 }, | |
}; | |
(async () => { | |
const browser = await puppeteer.launch({ | |
args: ['--no-sandbox', `--window-size=${size.desktop.width},${size.desktop.height}`], |
This file contains hidden or 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 | |
$cats = require 'generate.php'; | |
$catsById = $children = []; | |
foreach ($cats as $i => $cat) { | |
// $cat[0] is the ID selector. | |
$catsById[$cat[0]] = $cat; | |
// $cat[1] is the PARENT ID selector. |
This file contains hidden or 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
Nova.booting(app => { | |
app.mixin({ | |
mounted () { | |
// Searching for the footer component and replacing it. | |
if (this.$el.id !== 'nova' && (this.$el?.innerText || '').match(/Laravel LLC . by Taylor Otwell and David Hemphill/)) { | |
this.$el.innerHTML = ` | |
<div class="text-center"> | |
Copyright © ${new Date().getFullYear()} Nobody | |
</div> | |
` |
OlderNewer