A collection of small CLI utilities (Rust and Ruby).
Prints tomorrow's weather forecast in your terminal. It auto-detects your location via IP geolocation, then pulls a forecast from the Open-Meteo API — no API key required.
Example output
12
Prints tomorrow's average temperature in °C as a plain integer ((max + min) / 2).
Build & run
cd weather
cargo run --releaseDependencies
| Crate | Purpose |
|---|---|
reqwest |
HTTP client |
serde / serde_json |
JSON deserialization |
tokio |
Async runtime |
anyhow |
Error handling |
APIs used (both free, no key needed)
- ip-api.com — IP geolocation
- Open-Meteo — weather forecast
A quiz that prompts you with a capital city; you type the country.
Example output
Capitals Quiz — name the country. Type 'quit' to stop.
Tokyo: Japan
Correct!
Paris: Germany
Wrong — France
Ottawa: Canada
Correct!
2/3
Build & run
cd capitals
cargo run --releaseNo external crates required — stdlib only.