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
/* A simple Arc boost that injects a button to download all images from a generated set. */ | |
const sleep = ms => { return new Promise(resolve => setTimeout(resolve, ms)) } | |
const downloadImages = async () => { | |
const newImages = document.querySelector(".task-page-generations"); | |
const imageThumbnails = newImages.querySelectorAll(".generated-image-overlay"); | |
for (const imageThumbnail of imageThumbnails) { | |
imageThumbnail.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
/****************************************************************************** | |
Actuator part of CO2-assemblage. | |
© Love Lagerkvist, 2020-01-07 | |
Looks for a BLE Peripheral advertising @ 19b10000-e8f2-537e-4f6c-d104768a1214 | |
Dims the ring based on the BLE Char at the same UUID, understood to be CO2 | |
Hardware setup: | |
Neopixel Ring LED 24: | |
5V to 5V pin |
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
/* | |
randomBlackout – 1.0.0 | |
Prompts the user to turn off a random kitchen appliance using | |
an Arduino Uno hooked up to an LCD display and a buzzer. | |
All in the grand name of science. | |
The circuit: | |
* Arduino Uno |