Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
| Simple demonstrations of putting AVR microcontrollers to sleep in power-down mode, | |
| which results in minimum current. Coded with Arduino IDE version 1.0.4 (and with | |
| the Arduino-Tiny core for the ATtiny MCUs, http://code.google.com/p/arduino-tiny/) | |
| For ATmega328P, ~0.1µA. | |
| For ATtinyX5 revisions that implement software BOD disable, ~0.1µA, | |
| for ATtinyX5 revisions that don't, ~20µA. |
Original link: http://www.concentric.net/~Ttwang/tech/inthash.htm
Taken from: http://web.archive.org/web/20071223173210/http://www.concentric.net/~Ttwang/tech/inthash.htm
Reformatted using pandoc
Thomas Wang, Jan 1997
last update Mar 2007
| export const fetchAsBlob = url => fetch(url) | |
| .then(response => response.blob()); | |
| export const convertBlobToBase64 = blob => new Promise((resolve, reject) => { | |
| const reader = new FileReader; | |
| reader.onerror = reject; | |
| reader.onload = () => { | |
| resolve(reader.result); | |
| }; | |
| reader.readAsDataURL(blob); |
With almost no bandwith at home, I needed a way to download DOOM that didn't involve blocking the home internet line for two days.
Using steamcmd you can use any computer to download steam games.
login username password| import { writeFile } from 'fs/promises'; | |
| import { resolve } from 'path'; | |
| import glob from 'fast-glob'; | |
| const cwd = process.env.PWD; | |
| async function outputConfigJson(file) { | |
| const outputFile = file.replace(/\.js$/, '.json'); | |
| // use import() so both CJS and ESM work | |
| let config = await import(resolve(cwd, file)); |
This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.
Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.