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
scriptdir = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) | |
CreateObject("Wscript.Shell").Run scriptdir + "\updateip.bat", 0, True |
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 splitStringTime = str => str.split(":").map(str => parseInt(str, 10)); | |
const leftZero = str => ("0" + str).slice(-2); | |
function isBetweenTimes({ startTime, endTime, nowTime }) { | |
const [hourStart, minuteStart] = splitStringTime(startTime); | |
const [hourEnd, minuteEnd] = splitStringTime(endTime); | |
const [hourNow, minuteNow] = splitStringTime(nowTime); | |
const startMinutes = hourStart * 60 + minuteStart; |
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
let rides = []; | |
let lastRideId = undefined; | |
const getRides = () => { | |
const tripNodes = Array.from( | |
document.querySelectorAll(".trip-expand__origin") | |
); | |
const id = tripNodes[0].dataset.target.replace("#trip-", ""); | |
const hasNewRides = lastRideId !== id; |
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
# Convert images from folder | |
## Installation | |
You need to download libwebp and put in the shell script folder. | |
You must have installed the jpegoptim, giflossy (gifsicle), pngquant and imagemagick library. | |
## Usage | |
Convert folder and put results in the results folder |