.. 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.4 KiB
1.4 KiB
| layout | board_id | title | name | manufacturer | board_url | board_image | downloads_display | blinka | date_added | features | |||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| download | jetson_tx2 | Jetson TX2 Dev Kit | Jetson TX2 Dev Kit | NVIDIA |
|
jetson_tx2.jpg | true | true | 2019-12-03 |
|
The Jetson TX2 Developer Kit gives you a fast, easy way to develop hardware and software for the Jetson TX2 AI supercomputer on a module. It exposes the hardware capabilities and interfaces of the developer board, comes with design guides and other documentation, and is pre-flashed with a Linux development environment.
It also supports NVIDIA Jetpack—a complete SDK that includes the BSP, libraries for deep learning, computer vision, GPU computing, multimedia processing, and much more.
- GPU NVIDIA Pascal™ Architecture GPU
- CPU 2 Denver 64-bit CPUs + Quad-Core A57 Complex
- Memory 8 GB L128 bit DDR4 Memory
- Storage 32 GB eMMC 5.1 Flash Storage
- Connectivity to 802.11ac Wi-Fi and Bluetooth-Enabled Devices
- 10/100/1000BASE-T Ethernet
- Video: 4K 60 Hz decode | 4K 30 Hz encode
- USB USB 3.0 + USB 2.0
- Ethernet 1
- I2C 1
- CAN 1
- SPI 1
- UART 1
- GPIO 1
- Display Interface HDMI
- Operating Systems Linux Ubuntu 64-bit v14.04
- PC Card Interface SD