Skip to content

Instantly share code, notes, and snippets.

var request = require("request"),
cheerio = require("cheerio"),
url = "https://www.google.com/search?q=data+mining",
corpus = {},
totalResults = 0,
resultsDownloaded = 0;
function callback () {
resultsDownloaded++;

Keybase proof

I hereby claim:

  • I am eldair on github.
  • I am eldair (https://keybase.io/eldair) on keybase.
  • I have a public key whose fingerprint is 21FB EECE E99F 185D 55A8 F5C9 7FC7 6EF4 A306 6E6C

To claim this, I am signing this object:

@eldair
eldair / AppServiceProvider.php
Created September 16, 2020 11:13 — forked from themsaid/AppServiceProvider.php
Re-encryption after APP_KEY rotation
<?php
namespace App\Providers;
use App\Encrypter;
use Illuminate\Support\Str;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
@eldair
eldair / MyBusiness.php
Created December 14, 2022 10:20
Google my business php class
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@eldair
eldair / Middleware-CSP.php
Created May 11, 2023 08:36 — forked from valorin/Middleware-CSP.php
CSP Middleware - the simple CSP middleware I use across all of my projects.
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Support\Facades\Vite;
use Illuminate\Support\Str;
/**
* Simple Content Security Policy middleware.