- 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
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
const skillSet = context => { | |
return { | |
nameSkills: { | |
getName() { | |
return context.name; | |
}, | |
setName(name) { | |
context.name = name; | |
} | |
} |
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
function sumNaive (n, acc = 0) { | |
if (n === 0) { | |
return acc | |
} | |
return sumNaive(n - 1, acc + n) | |
} | |
// console.log(sumNaive(1000)) | |
// console.log(sumNaive(100000)) |
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
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.
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
#!/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 |
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
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 |
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
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
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
<!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> |