This file contains hidden or 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
| /* | |
| * Takes provided URL passed as argument and make full height screenshots of this page | |
| * with several viewport widths using Nightwatch.js with Selenium. | |
| * | |
| * These viewport widths are taken from common android and iOS devices. Modify as needed. | |
| * | |
| * Takes an optional second argument for the path where screenshots are saved. | |
| * | |
| * Usage: | |
| * $ nightwatch -t viewport-shots.js http://example.com |
This file contains hidden or 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
| import Rebase from 're-base'; | |
| const endPoint = 'actions'; | |
| const firebaseUrl = 'https://firesync.firebaseio.com'; | |
| const client = String(Date.now() + Math.random() * 100); | |
| const data = []; | |
| let initiated = false; | |
| const base = Rebase.createClass(firebaseUrl); | |
| function firesync (store) { |
This file contains hidden or 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 v0.6 of the custom script for AlfredApp for iTerm 2.9+ | |
| -- Please see https://github.com/stuartcryan/custom-iterm-applescripts-for-alfred/ | |
| -- for the latest changes. | |
| -- Please note, if you store the iTerm binary in any other location than the Applications Folder | |
| -- please ensure you update the two locations below (in the format of : rather than / for folder dividers) | |
| -- this gets around issues with AppleScript not handling things well if you have two iTerm binaries on your system... which can happen :D | |
| on alfred_script(q) | |
| if application "iTerm2" is running or application "iTerm" is running then |
This file contains hidden or 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
| license: gpl-3.0 |
This file contains hidden or 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 waitFor = (ms) => new Promise(r => setTimeout(r, ms)) | |
| const asyncForEach = async (array, callback) => { | |
| for (let index = 0; index < array.length; index++) { | |
| await callback(array[index], index, array) | |
| } | |
| } | |
| const start = async () => { | |
| await asyncForEach([1, 2, 3], async (num) => { | |
| await waitFor(50) |
OlderNewer