Made this to help me extract Chat GPT logs, for future reference.
Chat GPT did help in helping me write this :)
- Go to Chat GPT
- Type some questions
How to add custom fonts to a webpage:
Generate web fonts for every browser eg, use https://www.fontsquirrel.com/tools/webfont-generator or https://transfonter.org/
Add fonts to css/fonts
folder or equivalent
Look inside downloaded font files for a stylesheet.css
or equivalent and copy the @font-face
, while adjusting the file paths to match the location of the font folder
@font-face {
font-family: "Some font";
src: url("css/fonts/some-font.eot");
src: url("css/fonts/some-font.woff") format("woff"),
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
Commands for controlling the Raspberry Pi 2 LEDs.
See rpi-leds for a node module that does this.
led0
led1
Allow access
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
const MongoClient = require('mongodb').MongoClient; | |
const assert = require('assert'); | |
exports.findInCollection = ({ db, collectionName }) => query => { | |
assert.notEqual(db, undefined); | |
const collection = db.collection(collectionName); | |
return collection.find(query).toArray(); | |
}; |