Skip to content

Instantly share code, notes, and snippets.

@openpanzer
openpanzer / openpanzer-save.json
Created December 3, 2026 15:22
Southern Front 1942-6
{"scenario":{"name":"Southern Front 1942","maxTurns":21,"date":"1942-05-12T04:00:00.000Z","atmosferic":0,"latitude":3,"ground":0,"turnsPerDay":2,"dayTurn":0,"reinforcements":{},"map":{"rows":35,"cols":40,"isLastRowPartial":false,"isLastColPartial":false,"map":[[{},{},{"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":3,"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":3,"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,"isAtta
@dimohy
dimohy / duxel-fluent2-agent-guide.md
Created December 3, 2026 15:21
Duxel Fluent 2 agent guide and verified Compact Windows example

Build a compact Windows desktop app with Duxel and Fluent 2

This guide gives AI agents a runnable starting point for tables, tools and inspectors. The example builds a retained Fluent 2 view, sorts numeric values, and returns background work to an event-driven window. It requires Windows, the .NET 10 SDK and a graphics driver that supports Vulkan.

Pin and inspect the dependencies

The example uses the public Duxel.Windows.App 0.4.4 release, which supplies the Fluent API through its dependencies. Resolve APIs against the package you will ship. In a release with separate widget packages, add Duxel.Fluent2 at a compatible version and confirm the entire restore with dotnet list package --include-transitive. The 0.4.4 example below keeps the dependencies as released.

const { bot, isUrl } = require('../lib');
const fetch = (...args) => import('node-fetch').then(({ default: fetch }) => fetch(...args));
const OWNER_NAME = 'SK Dev Zone';
const API_BASE = 'https://btch-downloader-api-green.vercel.app/api/download';
const TIKTOK_REGEX = /(?:https?:\/\/)?(?:www\.|vm\.|vt\.)?tiktok\.com\/[^\s]+/i;
const IG_REGEX = /(?:https?:\/\/)?(?:www\.)?instagram\.com\/(?:reel|reels|p|tv|share)\/[^\s]+/i;
const FB_REGEX = /(?:https?:\/\/)?(?:www\.|m\.|fb\.watch)?(?:facebook\.com\/[^\s]*\/(?:videos|reel|watch)|fb\.watch)\/[^\s]+/i;
This file has been truncated, but you can view the full file.
# Solve.mjs Log - 2026-12-03T11:38:52.141Z
[2026-12-03T11:38:52.387Z] [INFO] 📁 Log file: /home/box/solve-2026-12-03T11-38-52-140Z.log
[2026-12-03T11:38:52.395Z] [INFO] (All output will be logged here)
[2026-12-03T11:38:54.421Z] [INFO]
[2026-12-03T11:38:54.425Z] [INFO] 🚀 solve v2.50.0
[2026-12-03T11:38:54.427Z] [INFO] 🔧 Raw command executed:
[2026-12-03T11:38:54.429Z] [INFO] /home/box/.nvm/versions/node/v26.13.1/bin/node /home/box/.bun/bin/solve https://github.com/link-foundation/ui/pull/300 --think high --tool claude --attach-logs --verbose --no-tool-check --disable-report-issue --language en
[2026-12-03T11:38:54.431Z] [INFO]
@forkyau
forkyau / hourly_rainfall_data-2026-12-03|23-00.csv
Created December 3, 2026 15:21
GIST created by python code
id station stationid value unit obstime date
0 流浮山 RF001 0 mm 2026-12-03T23:00:00+08:00 2026-12-03
1 湿地公园 RF002 0 mm 2026-12-03T23:00:00+08:00 2026-12-03
2 水边围 N12 0 mm 2026-12-03T23:00:00+08:00 2026-12-03
3 石岗 RF003 0 mm 2026-12-03T23:00:00+08:00 2026-12-03
4 大美督 RF004 0 mm 2026-12-03T23:00:00+08:00 2026-12-03
5 大埔墟 RF005 0 mm 2026-12-03T23:00:00+08:00 2026-12-03
6 北潭涌 RF006 0 mm 2026-12-03T23:00:00+08:00 2026-12-03
7 滘西洲 RF007 0 mm 2026-12-03T23:00:00+08:00 2026-12-03
8 西贡 N15 0 mm 2026-12-03T23:00:00+08:00 2026-12-03
@urelkdubdqwr
urelkdubdqwr / frantic_report_new.md
Created December 3, 2026 15:20
Frantic #33 - Firefly III docs report (custom domain build)

Firefly III docs — Sourcey build published on a dedicated custom domain

This delivery builds and publishes Sourcey-generated documentation for Firefly III, a maintained open-source personal finance manager (github.com/firefly-iii/firefly-iii, GPL-3.0-or-later, actively maintained).

What was done

  • Source: cloned github.com/firefly-iii/docs at pinned commit 200f83b (2026-11-29).
  • Build: ran the repo's own Sourcey config (docs/sourcey.config.ts, unmodified) with sourcey 3.9.2 → 121 pages, 932 files.
  • Sealed receipt: runx:receipt:sha256:168881cc... — runx verify returns ok (0.11.1).
  • Publish: deployed the build to Cloudflare Pages project firefly-docs and attached the registered custom domain firefly-docs.urelkdubdqwr.xyz (zone urelkdubdqwr.xyz). The URL serves live.
@DuelistSound
DuelistSound / rob run cheats free public version download .md
Created December 3, 2026 15:20
rob run cheats free public version download — the public build, free and open to everyone: direct loader, feature list and setup

Rob Run cheats — free public version download

Click here for download


public build downloaded directly and attached on the first match

public build, direct download, first match

@pavanijetti07
pavanijetti07 / main.dart
Created December 3, 2026 15:20
InternCircle Project 01 - Profile Card App
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
@urelkdubdqwr
urelkdubdqwr / frantic_evidence_new.json
Created December 3, 2026 15:20
Frantic #33 - Firefly III docs evidence (custom domain build)
{
"schema": "frantic.sourcey-docs-delivery.v1",
"artifact": "public_url=https://firefly-docs.urelkdubdqwr.xyz/",
"subject": "Firefly III documentation built and published with Sourcey",
"summary": "Sourcey 3.9.2 generated a 121-page documentation site for Firefly III, the maintained open-source personal finance manager (github.com/firefly-iii/firefly-iii, GPL-3.0-or-later). We cloned the project's own docs repository github.com/firefly-iii/docs at pinned commit 200f83b (2026-11-29), ran Sourcey against it (the repo's own sourcey.config.ts, unchanged), producing 121 pages / 932 files. We then published that build at firefly-docs.urelkdubdqwr.xyz on Cloudflare Pages with custom domain, where it serves live and was verified byte-compatible with the local build (sitemap.xml hash-identical). Parent domain urelkdubdqwr.xyz is a registered zone; the subdomain is dedicated to this docs project.",
"public_url": "https://firefly-docs.urelkdubdqwr.xyz/",
"toolchain": {
"runx_version_raw": "runx-cli 0.11.1",
"s

Python 自动化实战:100 个常用脚本与踩坑记录

写自动化脚本三年,真正天天用到的其实就那些套路。这份清单按场景拆成十类,每条都是一个能直接落地的小任务,附上容易翻车的点。全篇 100 条,可以当练手题,也可以当查漏补缺的目录。

一、文件与目录处理(1-10)

  1. 用 pathlib 遍历目录,按扩展名分组归档文件。 https://drzwplj.cn