Skip to content

Instantly share code, notes, and snippets.

@wispborne
wispborne / Example.version
Last active April 22, 2024 16:06
Example of Starsector Version Checker file on Gist
{
# To get this url, first create your Gist, then click Raw and copy the url,
# then remove the *second* number from the url (after "raw")
# so that it matches the format of the below url.
"masterVersionFile": "https://gist.githubusercontent.com/wispborne/dad950c16ae82b35cc43aab71a9fa0dc/raw/Example.version",
"modName": "MagicLib",
"modThreadId": "25868",
"modVersion": {
"major": "1",
"minor": "4",
// Example Runner
try {
await replaceSelf(directoryWithNewVersionFiles);
} catch (error) {
Fimber.w('Error self-updating something. YOLOing.', ex: error);
}
if (currentPlatform == TargetPlatform.windows) {
await Process.start(
'cmd',
['/c', "start", "", Platform.resolvedExecutable],
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Fractal Softworks\Starsector]
"HungAppTimeout"="15000"
@wispborne
wispborne / MovingTooltipWidget.dart
Last active April 15, 2025 17:28
Flutter widget to display a tooltip that follows the cursor and doesn't block clicks, like video game tooltips.
import 'dart:math' as math;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
import 'package:trios/themes/theme_manager.dart';
import 'package:trios/thirdparty/dartx/string.dart';
import 'package:trios/widgets/tooltip_frame.dart';
enum TooltipPosition { topLeft, topRight, bottomLeft, bottomRight }
@wispborne
wispborne / userstyle.css
Created March 23, 2026 16:55
Audiobookshelf Style
/* Wisp's Dark Theme */
:root {
/* ## Personal Color Palette ## */
--theme-main: #101828;
/* Main background color */
--theme-secondary: #3BA99C;
/* Secondary accent color */
--theme-tertiary: #3BA99C;
/* --theme-tertiary: #E4B363; */
/* Tertiary highlight color */
@wispborne
wispborne / repro.dart
Last active May 22, 2026 19:34
dart_3.12.0-aot-crash
/// Dart AOT codegen crash reproducer.
///
/// Bug: `dart compile exe` generates native code that crashes with an access
/// violation (0xC0000005). `dart run` (JIT) works fine. The same exe with the
/// workaround (`fixed`) also works fine.
///
/// Trigger: an async method containing a for-loop-with-await, where the method
/// is part of a mutual-recursion cycle with another complex async method. The
/// recursive call does not need to execute at runtime — it only needs to exist
/// in the call graph.
@wispborne
wispborne / explore.md
Last active July 14, 2026 20:23
OpenSpec Natural
name OPSX: Explore
description Turn on explore mode — think through ideas, investigate a problem, figure out what's needed before anyone builds anything.
category Workflow
tags
workflow
explore
experimental
thinking

Turn on explore mode. Think things through slowly. Sketch freely. Follow the conversation wherever it goes.

Explore mode is for thinking, not building. You can read files, search the code, and poke around the project — but don't write application code or build features here. If the user asks you to build something, remind them to leave explore mode first and start a proposal. Writing OpenSpec planning documents is fine if they ask — that's writing down what you've figured out, not building.