Discover gists
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
| package main | |
| import ( | |
| "database/sql" | |
| "encoding/json" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "time" |
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
| local function sq2dq(source) | |
| local sq = false | |
| local dq = false | |
| return (string.gsub(source,"[\"']",function(c) | |
| if c == "'" then | |
| if not dq then | |
| sq = not sq | |
| return '"' | |
| end | |
| end |
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
| id | station | stationid | value | unit | obstime | date | |
|---|---|---|---|---|---|---|---|
| 0 | 流浮山 | RF001 | 0 | mm | 2026-08-16T19:30:00+08:00 | 2026-08-16 | |
| 1 | 湿地公园 | RF002 | 0 | mm | 2026-08-16T19:30:00+08:00 | 2026-08-16 | |
| 2 | 水边围 | N12 | 0 | mm | 2026-08-16T19:30:00+08:00 | 2026-08-16 | |
| 3 | 石岗 | RF003 | M | mm | 2026-08-16T19:30:00+08:00 | 2026-08-16 | |
| 4 | 大美督 | RF004 | 0 | mm | 2026-08-16T19:30:00+08:00 | 2026-08-16 | |
| 5 | 大埔墟 | RF005 | 0 | mm | 2026-08-16T19:30:00+08:00 | 2026-08-16 | |
| 6 | 北潭涌 | RF006 | 0 | mm | 2026-08-16T19:30:00+08:00 | 2026-08-16 | |
| 7 | 滘西洲 | RF007 | 0 | mm | 2026-08-16T19:30:00+08:00 | 2026-08-16 | |
| 8 | 西贡 | N15 | 0 | mm | 2026-08-16T19:30:00+08:00 | 2026-08-16 |
This file has been truncated, but you can view the full file.
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
| Log uploaded on Sunday, August 16, 2026, 7:50:22 PM | |
| Loaded mods: | |
| Prepatcher(zetrith.prepatcher): 0Harmony(2.4.2), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0) | |
| Harmony(brrainz.harmony)[mv:2.4.2.0]: 0Harmony(av:2.4.2,fv:2.4.1), HarmonyMod(2.4.2) | |
| Loading Progress(ilyvion.LoadingProgress): ilyvion.LoadingProgress(0.11.0) | |
| Core(Ludeon.RimWorld): (no assemblies) | |
| Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
| Ideology(Ludeon.RimWorld.Ideology): (no assemblies) | |
| Biotech(Ludeon.RimWorld.Biotech): (no assemblies) |
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
| FROM debian:trixie | |
| ARG MISE_VERSION=v2026.8.6 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV MISE_DATA_DIR=/mise | |
| ENV MISE_CONFIG_DIR=/mise | |
| ENV MISE_CACHE_DIR=/mise/cache | |
| ENV MISE_INSTALL_PATH=/usr/local/bin/mise | |
| ENV PATH=/mise/shims:${PATH} |
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
| blueprint: | |
| name: Moody Alarm (unified) | |
| description: > | |
| A mode-ranked alarm. Sensors are optional, so this one blueprint covers both | |
| real alarms (like fire or intruder) and entries that only run side effects (like travel mode) | |
| when a mode changes. | |
| Requires a Dropdown helper with the entity id `input_select.house_mode`, | |
| whose options are listed from LEAST armed to MOST armed, for example: | |
| `off, safety, inside, away, travel`. |
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
| {} |
This file has been truncated, but you can view the full file.
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
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
| class Solution { | |
| public: | |
| bool stoneGameIX(vector<int>& stones) { | |
| int counter_0 = 0; | |
| int counter_1 = 0; | |
| int counter_2 = 0; | |
| for(int val : stones){ | |
| if(int type = val % 3; type == 0){ | |
| counter_0++; |
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
| ● Grounded in measurement first. Here's what's actually running. | |
| The chain today, end to end | |
| jotunheimr_lan host | |
| └─ systemd-resolved 127.0.0.53 ← also does LLMNR + mDNS ⚠ | |
| └─ DNS → heimdal1:53 (dnsmasq) | |
| ├─ authoritative for jotunheimr.lan (local=/jotunheimr.lan/) ✓ | |
| └─ everything else → 127.0.0.53 on heimdal1 (systemd-resolved) | |
| └─ upstream = whatever the UPLINK DHCP lease said (router0/FRITZ!Box) |
NewerOlder