Skip to content

Instantly share code, notes, and snippets.

@dumkydewilde
dumkydewilde / dbt-streamlit-materialization-macro.sql
Created August 23, 2025 08:06
Custom dbt materialization for Snowflake Streamlit Apps
{% materialization streamlit, adapter='snowflake', supported_languages = ['python'] %}
{% set original_query_tag = set_query_tag() %}
{% set identifier = model['alias'] %}
{% set app_name = config.get('app_name', identifier) %}
{% set stage_name = config.get('stage', 'streamlit_apps') %}
{% set create_stage = config.get('create_stage', true) %}
@openpanzer
openpanzer / openpanzer-save.json
Last active August 23, 2025 08:06
Ciechanow-1
{"scenario":{"name":"Ciechanow","maxTurns":20,"date":"1939-09-04T23:00:00.000Z","atmosferic":0,"latitude":2,"ground":0,"turnsPerDay":4,"dayTurn":0,"reinforcements":{},"map":{"rows":32,"cols":37,"isLastRowPartial":false,"isLastColPartial":false,"map":[[{},{},{},{},{},{},{},{},{},{},{"unit":null,"airunit":null,"terrain":15,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{"unit":null,"airunit":null,"terrain":15,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{},{},{},{},{},{"unit":null,"airunit":null,"terrain":3,"road":0,"owner":-1,"flag":-1,"isDeployment":-1,"victorySide":-1,"name":"","isMoveSel":false,"isAttackSel":false},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}],[{},{},{},{},{},{},{},{},{},{},{"unit":null,"airunit":null,"terrain":1,"road":0,"owner":0,"flag":7,"isDeployment":0,"victorySide":1,"name":"Neidenburg","isMoveSel":false,"isAttackSel":false},{"unit":{"eqid
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created August 23, 2025 08:03
Rimworld output log published using HugsLib
Log uploaded on Saturday, August 23, 2025, 10:03:08 AM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.4.0.0]: 0Harmony(2.4.0), HarmonyMod(2.4.0)
Loading Progress(ilyvion.LoadingProgress): ilyvion.LoadingProgress(0.9.3)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies)
Odyssey(Ludeon.RimWorld.Odyssey): (no assemblies)
@choco-bot
choco-bot / Install.txt
Created August 23, 2025 08:03
havdetectiontool v1.0 - Failed - Package Tests Results
2025-08-23 07:57:42,332 2156 [DEBUG] - XmlConfiguration is now operational
2025-08-23 07:57:45,842 2156 [DEBUG] - Adding new type 'CygwinService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-08-23 07:57:45,937 2156 [DEBUG] - Adding new type 'CygwinService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-08-23 07:57:45,999 2156 [DEBUG] - Adding new type 'PythonService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-08-23 07:57:46,028 2156 [DEBUG] - Adding new type 'PythonService' for type 'IListSourceRunner' from assembly 'choco'
2025-08-23 07:57:46,063 2156 [DEBUG] - Adding new type 'PythonService' for type 'IInstallSourceRunner' from assembly 'choco'
2025-08-23 07:57:46,123 2156 [DEBUG] - Adding new type 'PythonService' for type 'IUninstallSourceRunner' from assembly 'choco'
2025-08-23 07:57:46,171 2156 [DEBUG] - Adding new type 'RubyGemsService' for type 'IAlternativeSourceRunner' from assembly 'choco'
2025-08-23 07:57:46,233 2156 [DEBUG] - Adding new typ
#EXTM3U
# 🇵🇹 Portugal
#EXTINF:-1 tvg-id="RTP1.pt" tvg-logo="https://upload.wikimedia.org/wikipedia/commons/1/1e/RTP1_logo.png" group-title="Portugal", RTP 1
http://195.23.83.209/live/rtp1/playlist.m3u8
#EXTINF:-1 tvg-id="RTP2.pt" tvg-logo="https://upload.wikimedia.org/wikipedia/commons/e/e2/RTP2_logo_2016.png" group-title="Portugal", RTP 2
http://195.23.83.209/live/rtp2/playlist.m3u8
#EXTINF:-1 tvg-id="RTPAfrica.pt" tvg-logo="https://upload.wikimedia.org/wikipedia/commons/7/74/RTP_Africa_logo.png" group-title="Portugal", RTP África

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created August 23, 2025 08:02
Rimworld output log published using HugsLib
Log uploaded on Saturday, August 23, 2025, 5:02:25 PM
Loaded mods:
Harmony(brrainz.harmony)[mv:2.4.0.0]: 0Harmony(2.4.0), HarmonyMod(2.4.0)
Core(Ludeon.RimWorld): (no assemblies)
Vanilla Expanded Framework(OskarPotocki.VanillaFactionsExpanded.Core): 0ModSettingsFramework(1.0.0), 0PrepatcherAPI(1.2.0), KCSG(av:1.1.2,fv:25.7.30), MVCF(2.0.0.1), Outposts(av:3.0.0,fv:1.0.0), PipeSystem(av:1.0.1,fv:22.7.29), VEF(av:1.1.7,fv:1.1.9)
Vanilla Fishing Expanded(VanillaExpanded.VCEF): VCE-Fishing(1.0.0)
ReGrowth 2(ReGrowth.BOTR.Core): 0ModSettingsFramework(1.0.0), LogModVersion(1.0.0), ReGrowthCore(1.0.0)
[FSF] Filth Vanishes With Rain And Time(FrozenSnowFox.FilthVanishesWithRainAndTime): (no assemblies)
HugsLib(UnlimitedHugs.HugsLib)[ov:12.0.0]: 0Harmony(av:2.4.0,fv:1.2.0.1), HugsLib(av:1.0.0,fv:12.0.0)
Common Sense(avilmask.CommonSense): CommonSense(1.0.9347.31617)

Keybase proof

I hereby claim:

  • I am amanse on github.
  • I am sanuki (https://keybase.io/sanuki) on keybase.
  • I have a public key ASCcgvTZg9Ed1NBhQMn2I3tguxRDxsRlGQvYiF32zhCbqgo

To claim this, I am signing this object:

@davidorex
davidorex / rhythm-strategies.js
Created August 23, 2025 08:01
Rhythms module for gesture midi generation
/**
* Rhythm Strategies Module for Gestural MIDI Generator
*
* Provides pluggable rhythm generation strategies for polyrhythmic pattern creation.
* Each strategy returns pattern lengths or rhythm patterns that determine when
* musical events trigger.
*/
// Helper function to generate Euclidean rhythm patterns
function generateEuclidean(k, n) {
@forkyau
forkyau / hourly_rainfall_data-2025-08-23|15-45.csv
Created August 23, 2025 08:01
GIST created by python code
id station stationid value unit obstime date
0 流浮山 RF001 0 mm 2025-08-23T15:45:00+08:00 2025-08-23
1 湿地公园 RF002 0 mm 2025-08-23T15:45:00+08:00 2025-08-23
2 水边围 N12 0 mm 2025-08-23T15:45:00+08:00 2025-08-23
3 石岗 RF003 0 mm 2025-08-23T15:45:00+08:00 2025-08-23
4 大美督 RF004 0 mm 2025-08-23T15:45:00+08:00 2025-08-23
5 大埔墟 RF005 0 mm 2025-08-23T15:45:00+08:00 2025-08-23
6 北潭涌 RF006 0 mm 2025-08-23T15:45:00+08:00 2025-08-23
7 滘西洲 RF007 0 mm 2025-08-23T15:45:00+08:00 2025-08-23
8 西贡 N15 0 mm 2025-08-23T15:45:00+08:00 2025-08-23