Skip to content

Instantly share code, notes, and snippets.

View entrptaher's full-sized avatar
🎯
Focusing

Md. Abu Taher entrptaher

🎯
Focusing
View GitHub Profile
const skillSet = context => {
return {
nameSkills: {
getName() {
return context.name;
},
setName(name) {
context.name = name;
}
}
function sumNaive (n, acc = 0) {
if (n === 0) {
return acc
}
return sumNaive(n - 1, acc + n)
}
// console.log(sumNaive(1000))
// console.log(sumNaive(100000))

Step 1

  • Go here https://console.developers.google.com/apis/api/chromewebstore/overview
  • Create a project.
  • Go here again https://console.developers.google.com/apis/api/chromewebstore/overview
  • Credentials > Create Credentials > Oauth Client ID
  • Configure Concent Screen
  • Enter yourextensionname
  • Select Other > then click Create
  • Save clientId and clientSecret
const PQueue = require("p-queue");
const queue = new PQueue({ concurrency: 1 });
const timeouts = [];
const intervals = [];
function clearTimeouts() {
for (var i = 0; i < timeouts.length; i++) {
clearTimeout(timeouts[i]);
}

It's important for specific instructions if we want to create a bot.

Either written properly or as a video.

Here is an example Video Link with instruction for a bot that search on google. Look how specific I am about every step.

You can use following screencast tools to record and share the instructions.

@entrptaher
entrptaher / install-php-tools.sh
Last active August 3, 2022 02:15 — forked from agarzon/install-php-tools.sh
Install globally popular PHP dev tools like composer, phpunit, phpcs, phpmd, phpcpd, deployer, robo, codeception, etc.
#!/bin/bash
#To execute it directly: bash <(curl -s https://gist.githubusercontent.com/agarzon/ecb0b92d4c8e1bbde126534c76721a58/raw/install-php-tools.sh)
# bash <(curl -s https://gist.githubusercontent.com/entrptaher/5cbb8cac9b0a6366eda5f1b3a1c2790e/raw/027c108dfb192303c8aabaaabd7a3ea55f4ba6aa/install-php-tools.sh)
BIN_PATH=/home/someone/lampstack-7.1.13-1/php/bin/
#COMPOSER
curl -LsS https://getcomposer.org/composer.phar -o ${BIN_PATH}composer
chmod a+x ${BIN_PATH}composer
var triggerDragAndDrop = function (selectorDrag, selectorDrop) {
// function for triggering mouse events
var fireMouseEvent = function (type, elem, centerX, centerY) {
var evt = document.createEvent('MouseEvents');
evt.initMouseEvent(type, true, true, window, 1, 1, 1, centerX, centerY, false, false, false, false, 0, elem);
elem.dispatchEvent(evt);
};
// fetch target elements
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>getLastParam normal vs regex</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>