Skip to content

Instantly share code, notes, and snippets.

@Sherwin-Graphite
Sherwin-Graphite / agent.py
Created December 7, 2025 01:01
Agent code
14630
pip install pygame import pygame
import random
# --- Constants ---
SCREEN_WIDTH = 800
SCREEN_HEIGHT = 600
FPS = 60
# Colors
WHITE = (255, 255, 255)
@Sherwin-Graphite
Sherwin-Graphite / agent.py
Created December 7, 2025 01:01
Agent code
56234
@forkyau
forkyau / hourly_rainfall_data-2025-12-07|08-45.csv
Created December 7, 2025 01:01
GIST created by python code
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
@Sherwin-Graphite
Sherwin-Graphite / agent.py
Created December 7, 2025 01:00
Agent code
29485
@SalahEddineGhamri
SalahEddineGhamri / simple_q_learning.py
Created December 7, 2025 01:00
a simple q learning implementation in python
"""
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
@Sherwin-Graphite
Sherwin-Graphite / agent.py
Created December 7, 2025 01:00
Agent code
63624
@Sarverott
Sarverott / #list-libraries-by-index-doc.js
Created December 7, 2025 01:00
playing around https://docs.python.org/3/library/ with devTools coding for fun
[
...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(
25-15335-FD | 12/6/2025 19:55:15 | INDOOR ODOR INVESTIGATION | | 57 Oak St, Lebanon, ME 04027, USA
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created December 7, 2025 00:59
Rimworld output log published using HugsLib Standalone Log Publisher
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)