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
# You need to install | |
# sudo apt-get install -y xdotool | |
import subprocess | |
import re | |
def clean_output(output_b): | |
return output_b.decode("utf-8").strip().split("\n") | |
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
{ | |
"version": "0.2.0", | |
"configurations": [ { | |
"name": "Django Command", | |
"type": "python", | |
"request": "launch", | |
"program": "${workspaceFolder}/manage.py", | |
"args": [ | |
"${input:commandToRun}", | |
], |
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
/* | |
Paste te Result of your clipboard on a console. | |
In background.js of a chrome extension and permission of clipboardRead and clipboardWrite on the manifest | |
*/ | |
setInterval(()=>{ | |
let tempT = document.querySelector('#clipboard'); | |
let textArea = !!tempT ? tempT : document.createElement("textarea"); | |
textArea.id = 'clipboard' | |
document.body.appendChild(textArea); | |
textArea.select(); |
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 generatePageSheet() { | |
let mainSheetName = "input - Price Table"; // Name of the sheet that will be read | |
let sheet = SpreadsheetApp.getActive().getSheetByName(mainSheetName); | |
let data = sheet.getDataRange().getValues(); // Getting the values data is 18 rows and 14 columns. The first row has two empty values and then the list | |
const [matrixPircesGaps, matrixPricesExtended] = fillMatrix(data); | |
name = 'Generated Output' | |
// let genSheet = sheet.insertSheet(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
/* This is an automation of this process explained in this video https://www.youtube.com/watch?time_continue=89&v=88eHpwLS_aQ&feature=emb_logo */ | |
let allContent = document.getElementsByTagName('body')[0].innerHTML; | |
const keyWord = 'wistia_async_'; | |
let asyncTextIndex = allContent.indexOf(keyWord); | |
let asyncEndIndex = allContent.indexOf(" ", asyncTextIndex); | |
let codeIndex = asyncTextIndex + keyWord.length; | |
let codeLength = asyncEndIndex - asyncTextIndex - keyWord.length; | |
let code = allContent.substr(codeIndex, codeLength); | |
let fastUrl = `https://fast.wistia.net/embed/iframe/${code}` | |
let finalUrl = `https://getvideo.at/?url=${encodeURIComponent(fastUrl)}&utm_source=bookmarklet&utm_medium=redirect`; |