https://mega.nz/folder/dLIWkbCB#0MH4CBGlj0JUA6n00EbpDg
https://mega.nz/folder/oWAwAR5Y#WsyNfvNK_SkoFXS4WJKcTA
https://mega.nz/folder/RGBgHJIS#qOsdOXynX41S5TFOP0PqHg
#!/bin/bash | |
################ | |
# Uncomment if you want the script to always use the scripts | |
# directory as the folder to look through | |
#REPOSITORIES="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
REPOSITORIES=`pwd` | |
IFS=$'\n' |
/* | |
* This work is free. You can redistribute it and/or modify it under the | |
* terms of the Do What The Fuck You Want To Public License, Version 2, | |
* as published by Sam Hocevar. See the COPYING file for more details. | |
*/ | |
/* | |
* Easing Functions - inspired from http://gizma.com/easing/ | |
* only considering the t value for the range [0, 1] => [0, 1] | |
*/ | |
EasingFunctions = { |
// this is the background code... | |
// listen for our browerAction to be clicked | |
chrome.browserAction.onClicked.addListener(function (tab) { | |
// for the current tab, inject the "inject.js" file & execute it | |
chrome.tabs.executeScript(tab.ib, { | |
file: 'inject.js' | |
}); | |
}); |
TypeScript 21 hrs 47 mins ββββββββββββββββββββ 67.1% | |
Vue.js 6 hrs 21 mins ββββββββββββββββββββ 19.6% | |
JSON 2 hrs 10 mins ββββββββββββββββββββ 6.7% | |
JavaScript 46 mins ββββββββββββββββββββ 2.4% |
import puppeteer from 'puppeteer' | |
import fs from 'fs' | |
async function buildPDF(htmlString) { | |
const browser = await puppeteer.launch({ headless: true }) | |
const page = await browser.newPage(); | |
await page.setContent(htmlString, { waitUntil: 'networkidle0' }) | |
const pdf = await page.pdf({ | |
format: 'A4', | |
displayHeaderFooter: false, |