.. leading zeros are required for `frontmatter` to treat them as dates
rather than strings, apparently per the YAML specification.
This was done by script:
```py
import re
import datetime
import pathlib
import sys
import frontmatter
rx = re.compile(r'^(\s*)date_added:.*$', re.M)
for path_str in sys.argv[1:]:
print(path_str)
path = pathlib.Path(path_str)
post = frontmatter.load(path)
date_added = post.get("date_added", "")
if isinstance(date_added, datetime.date):
continue
if isinstance(date_added, str):
try:
date_added = datetime.datetime.strptime(date_added, "%Y-%m-%d")
except ValueError as exc:
print(f"Failed to parse date {date_added} in {path_str}: {exc}")
continue
date_added = date_added.date()
content = path.read_text("utf-8")
new_content = rx.sub(lambda m: f"{m.group(1)}date_added: {date_added}", content)
assert content != new_content
path.write_text(new_content, "utf-8")
```
1.9 KiB
| layout | board_id | title | name | manufacturer | board_url | board_image | downloads_display | blinka | date_added | features | ||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| download | beaglebone_green_gateway | BeagleBone Green Gateway Download | BeagleBone Green Gateway | SeeedStudio |
|
beaglebone_green_gateway.jpg | true | true | 2020-11-01 |
|
Seeed Studio BeagleBone® Green Gateway is a low cost, open-source, community supported development platform for developers and hobbyists. It is a joint effort by BeagleBoard.org and Seeed Studio. It is based on the classical open-source hardware design of BeagleBone® Black and developed into this differentiated version. The Seeed Studio BeagleBone® Green Gateway includes two Grove connectors, making it easier to connect to the large family of Grove sensors. The on-board HDMI and Ethernet are removed to make room for these wireless features and Grove connectors.
The Seeed Studio BeagleBone® Green Gateway is a combination of Seeed Studio BeagleBone® Green and Seeed Studio BeagleBone® Green Wireless, equipped with both Ethernet and Wireless connectivity.
Boot Linux in less 10 seconds and get started on development in less than 5 minutes with just a single USB cable.
- Fully Compatible with BeagleBone® Black and Seeed Studio BeagleBone® Green
- Processor: AM3358 1GHz ARM® Cortex-A8
- 2×32-bit 200-MHz programmable real-time units (PRUs)
- 512MB DDR3 RAM
- 4KB EEPROM
- 4GB 8-bit eMMC on-board flash storage
- 3D graphics accelerator
- NEON floating-point accelerator
- Ethernet 10/100M bit
- WiFi 802.11 b/g/n 2.4GHz
- USB client for power & communications
- USB host
- SD/MMC Connector for microSD
- Bluetooth 4.1 with BLE
- 2x 46 pin headers
- 2x Grove connectors (I2C and UART)
- DC Jack for power, 12V