@antfu/ni
@builder.io/ai-shell
aicommits
alex
cash-cli
π―
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
| async function scrollDown() { | |
| const wrapper = document.querySelector("#search-page-list-container"); | |
| await new Promise((resolve, reject) => { | |
| var totalHeight = 0; | |
| var distance = 600; | |
| var timer = setInterval(async () => { | |
| var scrollHeightBefore = wrapper.scrollHeight; | |
| wrapper.scrollBy(0, distance); | |
| totalHeight += distance; |
Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.
To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up β Enable 2FA in your Google account.
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 | |
| namespace App\Services; | |
| use ReflectionClass; | |
| use Illuminate\Support\Facades\File; | |
| class ArrayToShapeConverter | |
| { | |
| public function __construct(private string $basePath, private readonly string $namespace) |
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
| wget -qO wo wops.cc && sudo bash wo | |
| # Auto completion | |
| source /etc/bash_completion.d/wo_auto.rc | |
| echo -e "alias wo='sudo -E wo'" >> $HOME/.bashrc | |
| source $HOME/.bashrc | |
| # Install stack | |
| wo stack install |
If you're on macOS and suddenly composer has started throwing this weird error and you're wondering where the problem is, well, here's the solution and how to debug.
Error when you run composer global update or any other similar commands.
In Process.php line 441:
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 | |
| /** | |
| * Retrieve the IP address of the visitor. | |
| * | |
| * @return string | |
| */ | |
| function getIPAddress() | |
| { | |
| foreach (['HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR'] as $key) { |
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
| // Usage | |
| class Kernel extends HttpKernel | |
| { | |
| // ..... | |
| // ..... | |
| // ..... | |
| protected $routeMiddleware = [ | |
| // ..... |