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
| 14630 |
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
| pip install pygame import pygame | |
| import random | |
| # --- Constants --- | |
| SCREEN_WIDTH = 800 | |
| SCREEN_HEIGHT = 600 | |
| FPS = 60 | |
| # Colors | |
| WHITE = (255, 255, 255) |
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
| 56234 |
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 | 2025-12-07T08:45:00+08:00 | 2025-12-07 | |
| 1 | 湿地公园 | RF002 | 0 | mm | 2025-12-07T08:45:00+08:00 | 2025-12-07 | |
| 2 | 水边围 | N12 | 0 | mm | 2025-12-07T08:45:00+08:00 | 2025-12-07 | |
| 3 | 石岗 | RF003 | 0 | mm | 2025-12-07T08:45:00+08:00 | 2025-12-07 | |
| 4 | 大美督 | RF004 | 0 | mm | 2025-12-07T08:45:00+08:00 | 2025-12-07 | |
| 5 | 大埔墟 | RF005 | 0 | mm | 2025-12-07T08:45:00+08:00 | 2025-12-07 | |
| 6 | 北潭涌 | RF006 | 0 | mm | 2025-12-07T08:45:00+08:00 | 2025-12-07 | |
| 7 | 滘西洲 | RF007 | 0 | mm | 2025-12-07T08:45:00+08:00 | 2025-12-07 | |
| 8 | 西贡 | N15 | 0 | mm | 2025-12-07T08:45:00+08:00 | 2025-12-07 |
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
| 29485 |
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
| """ | |
| Simple Q learning algorithm with epsilon-greedy action choice | |
| in q-learning algorithm we maintain a table of stats-actions q-values | |
| after attributing the rewards to the goal states | |
| the table is update based on bellman learning formula | |
| to propagate the q values on the state-action back to the start | |
| learning is done through episodes | |
| in the end the result path is calculated from the learned policy |
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
| 63624 |
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
| [ | |
| ...new Set( | |
| Array.from( | |
| document.querySelectorAll("a") | |
| ).map( | |
| (x)=>x.href | |
| ).filter( | |
| (x)=>x.includes('https://docs.python.org/3/library/') | |
| ).map( | |
| (x)=>x.substring( |
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
| 25-15335-FD | 12/6/2025 19:55:15 | INDOOR ODOR INVESTIGATION | | 57 Oak St, Lebanon, ME 04027, USA |
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 Saturday, December 6, 2025, 7:58:27 PM | |
| Loaded mods: | |
| Auto Mod Config (Continued)(Garethp.ModlistConfigurator)[v:1.0.0]: ModlistConfigurator(0.0.0) | |
| Prepatcher(jikulopo.prepatcher): 0Harmony(2.4.1), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.2.0), Prestarter(1.0.0) | |
| Harmony(brrainz.harmony)[v:2.4.2.0][mv:2.4.2.0]: 0Harmony(2.4.1), HarmonyMod(2.4.2) | |
| Loading Progress(ilyvion.LoadingProgress)[v:0.9.5]: ilyvion.LoadingProgress(0.9.5) | |
| Better Stacktraces(aleksey.betterstacktraces): BetterStacktraces(1.0.0) | |
| Core(Ludeon.RimWorld): (no assemblies) | |
| Royalty(Ludeon.RimWorld.Royalty): (no assemblies) | |
| Ideology(Ludeon.RimWorld.Ideology): (no assemblies) |
NewerOlder