- Editor (Webstorm)
- Syntax Highlighting Base: https://darekkay.com/blog/monokai-theme-intellij/
- My customised Higlighting: /Documents/macOS/DK Monokai.jar
- Font: Dank Mono with Ligatures enabled
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
{ | |
"src_folders": [ | |
"tests" | |
], | |
"output_folder": "./reports", | |
"custom_commands_path": "", | |
"custom_assertions_path": "", | |
"page_objects_path": "", | |
"globals_path" : "nightwatch.globals.js", | |
"selenium": { |
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
client_script 'loadouts.lua' | |
client_script 'preconditions.lua' |
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 win = new electron.BrowserWindow(...) | |
// When work makes progress, show the progress bar | |
function onProgress (progress) { | |
// Use values 0 to 1, or -1 to hide the progress bar | |
win.setProgressBar(progress || -1) // Progress bar works on all platforms | |
} | |
// When work completes while the app is in the background, show a badge | |
var numDoneInBackground = 0 |
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
[...$(".btn.btn-success.btn-xs")].map((button) => { | |
button.click(); | |
}) |
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
{ | |
"title": "ARROWS", | |
"rules": [ | |
{ | |
"description": "LEFT_ARROW", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"modifiers": { |
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
# parses and sums up durations of each episode from the designacademy.io course | |
# paste into console on https://www.designacademy.io/lesson/welcome-to-the-course/ | |
Array.from(document.querySelectorAll('.note')) | |
.map((elem) => elem.innerText) | |
.map((text) => text.split('|')[1]) | |
.filter((exists)=>exists) | |
.map((text)=> text.trim().split(':') | |
.map((number) => parseInt(number)) | |
.reduce((acc,curr,i)=>i===0 ? acc + (curr * 60): acc + curr ,0)) |
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/sh | |
# Locks a pdf with a custom password via pdftk. | |
# ONLY LOCKS EDITING. CAN STILL BE OPENEND WITHOUT PASSWORD | |
# HOW TO: | |
# pdftk has to be globally accessible. https://www.pdflabs.com/ | |
# run sh lock.sh [filename_without_filetype] [password] | |
filename=$1 | |
password=$2 | |
echo locking "$filename".pdf && |
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
{ | |
"%%true": { | |
"%function": { | |
"name": "canReadWritePartition", | |
"arguments": [ | |
"%%partition" | |
] | |
} | |
} | |
} |
OlderNewer