Skip to content

Instantly share code, notes, and snippets.

View Deledrius's full-sized avatar

Joseph Davies Deledrius

View GitHub Profile
@denisdefreyne
denisdefreyne / nanoc-photos.md
Created September 7, 2022 20:02
Nanoc example: Creating separate pages for each photo

content/photos/dog.jpg

content/photos/dog.yaml:

alt: A *very* good doggo. Who’s a good girl? woof woof yes you are YOU ARE

Rules:

@DRKV333
DRKV333 / FakeNavigationPoint.uc
Last active November 7, 2022 00:11
OtherlandStartAtOrigin
class FakeNavigationPoint extends NavigationPoint;
DefaultProperties
{
bStatic=false
bNoDelete=false
}
@anecdata
anecdata / RADS.md
Last active November 1, 2022 15:36
RADS: Redundant Array of mDNS http Servers

In the configuration pictured below, multiple identically-configured Adafruit CircuitPython 8.0.0-beta.0 on 2022-08-18; Adafruit QT Py ESP32S2 with ESP32S2 are used to create a Redundant Array of mDNS http Servers. The devices could be physically together or scattered around, as long as they are on the same LAN. Once configured, no USB connection is necessary for operation.

Each is running CircuitPython 8 Web Workflow: https://docs.circuitpython.org/en/latest/docs/workflows.html#web

Web Workflow automatically connects to a Wi-Fi Access Point based on credentials in a /.env file in the root of the CIRCUITPY drive filesystem, and creates an HTTP Server (port can be changed with CIRCUITPY_WEB_API_PORT= in the /.env file; it's port 80 by default).

In code.py, run an HTTP Server using (for example): https://docs.circuitpython.org/projects/httpserver/en/latest/api.html Make sure that the ports are different between the Web Workflow HTTP Server and the code.py HTTP Server (e.g., set