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
| let output = `` | |
| Array.from(document.querySelectorAll("a[href*='/token-detail/']")).map((link) => { | |
| const parent = link.parentNode | |
| const tokenTitle = parent.querySelector('div > span') | |
| const picture = parent.querySelector('div img[alt="token"]') | |
| output += ` | |
| <a href="${link.href}" target="_blank"> | |
| <img src="${picture.src}" loading="lazy" alt="${tokenTitle.innerText}"> | |
| </a>` | |
| }) |
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
| // 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 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 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 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
| #!/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 |