CREATE OR REPLACE FUNCTION v_knight(
piece_id VARCHAR, -- ID of the piece being moved
target_pos VARCHAR, -- Target position in chess notation
board_state JSONB -- JSON containing all pieces and their positions
)
RETURNS TABLE (
is_valid BOOLEAN,
message VARCHAR
) AS $$
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# gpkg2mbtiles.sh - Convert GeoPackage to MBTiles with specified zoom levels | |
# | |
# Usage: ./gpkg2mbtiles.sh -Z <min_zoom> -z <max_zoom> <input_file> | |
# Example: ./gpkg2mbtiles.sh -Z 14 -z 17 wa-parcels | |
# | |
# Created by: Josh Campbell - ThingEngineer | |
# Date: 2025-05-01 |
Virtual Environments (bash) A virtual environment is an isolated Python environment that allows you to install packages without affecting other Python projects or your system's Python installation. It also ensures you are working in a clean slate environment and enables reproducibility through dependency tracking.
Create:
- mdir my_project
- python3 -m venv my_project
Use:
- source my_project/bin/activate
Also see the original Pieter Noordhuis's guide
You need:
- Raspberry Pi Model B (or B+) with a MicroSD Card $35-40
- An RTL-SDR dongle:
I hereby claim:
- I am thingengineer on github.
- I am joshcampbell (https://keybase.io/joshcampbell) on keybase.
- I have a public key ASBGn17Q6cYHyA0N5tAK1OOVfN5SmHZVUCmeHBI33g7rhwo
To claim this, I am signing this object: