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
// Copy this code in the dev tools console after reaching the end of the page (scroll down to the page bottom) | |
let output = '', name = String(document.title).replace('fxhash — ', '') | |
Array.from(document.querySelectorAll('a[href*="/gentk/"]')).forEach((a, i) => { | |
const img = a.querySelector('img') | |
output += `<a href="${a.href}" target="_blank"><img loading="lazy" alt="${name} #${i+1}" src="${img.src}"></a>` | |
}) | |
output += '' | |
console.log(output) |
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
// Scrap Khroma palette | |
// https://www.khroma.co/generator | |
const componentToHex = (c) => { | |
var hex = c.toString(16); | |
return hex.length == 1 ? "0" + hex : hex; | |
} | |
const rgbToHex = (r, g, b) => "#" + componentToHex(r)+componentToHex(g)+componentToHex(b); | |
const palettes = [] |
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 fs = require('fs') | |
function getCollectors(number) { | |
const data = fs.readFileSync('./collectors.csv', 'utf8') | |
let lines = data.split('\n').slice(1) | |
const collectorsObject = {} | |
lines.forEach((l) => { | |
if(l.length === 0) return | |
const row = l.split(' ') |
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/bash | |
sleep | |
export DISPLAY=:0.0 | |
firefox -url http://chat.expo & | |
sleep 5 | |
xdotool search --name ".*Mozilla Firefox" key F11 | |
xdottol mousemove 0 1080 |