I hereby claim:
- I am cold-logic on github.
- I am christopherd (https://keybase.io/christopherd) on keybase.
- I have a public key whose fingerprint is D34C D8CD FD1A 3360 9A11 C9E2 F40D 71A2 C4C1 4D58
To claim this, I am signing this object:
/* | |
Parse and display links to items in your Amazon shopping history in a popup window | |
Useful for sharing stuff with people via email (copy/paste) | |
Pro user tip: SKUs scanned with Amazon's mobile app show up in this list | |
https://smile.amazon.com/gp/history?ie=UTF8&ref_=ya_browsing_history | |
*/ | |
($ => { | |
// Specify the range of products your interested in |
I hereby claim:
To claim this, I am signing this object:
/************************************************** | |
* Discogs Tracklist Batch Import | |
************************************************** | |
* Takes a tab separated list of values | |
* from Excel or Pages and feeds them into | |
* the discogs tracklist page | |
**************************************************/ | |
function fill(a) { | |
// Get a list of table rows from the tracklist |
{ | |
let a = [], b // Setup local vars | |
console.clear() // Clear the console | |
// For each item | |
$(".gameinfo").each(function() { | |
// Get the title & subtitle | |
let title = $(this).find('.title').text().trim() | |
let subtitle = $(this).find('.subtitle').text().trim() | |
a.push(`${title} - ${subtitle} #Humble`) | |
// Add the download URLs |
// benchmarked in milliseconds against an array of 7 million members | |
// safari 12 = 79 | |
// chrome 67 = 115 | |
// node 10 = 97 | |
arrFilter = (arr) => { | |
return arr.filter((elem, pos, array) => { | |
// if the element's index in array doesn't equal pos, it will be added | |
return array.indexOf(elem) == pos | |
}) |
module.exports = { | |
'Demo test Ecosia.org': function (browser) { | |
browser | |
.url('https://www.ecosia.org/') | |
.waitForElementVisible('body') | |
.assert.titleContains('Ecosia') | |
.assert.visible('input[type=search]') | |
.setValue('input[type=search]', 'nightwatch') | |
.assert.visible('button[type=submit]') | |
.click('button[type=submit]') |
/* | |
* Copies a list of humble bundle games into your clipboard for inventory managment | |
* Designed for the receipt/download pages: | |
* https://www.humblebundle.com/downloads?key={key} | |
*/ | |
{ | |
console.clear() | |
// Feel free to customize these tags as you wish | |
const tags = ['#Humble'].join(' ') | |
// DOM query selectors |
// Exclude zero (0) which is typically falsy | |
let isEmpty = (x) => x == 0 ? false : !(x) | |
/* Tests (run in Node CLI) | |
> isEmpty(0) | |
false | |
> isEmpty(1) | |
false | |
> isEmpty(1.5) | |
false |
#!/bin/bash | |
# Move files from one directory to another | |
# Usage: move.sh <filelist.txt> <source_dir> <destination_dir> | |
# Generate a filelist.txt using `ls > filelist.txt` | |
# First argument is the path to the filelist.txt that contains a newline separated (\n) list of filenames to move | |
txtListOfFilenames=$1 | |
# Second argument is the path to the source directory where the files are currently located |
// Guides extension
"guides.overrideDefault": true,
"guides.sendUsagesAndStats": false,
"guides.active.width": 2,