scribble-arg-processing.rkt:requirethis in yourscribble/textmodule to get access to the arguments you're passing in to be used in the template - which you can access by index or as a key/value store,generate-string-from-scribble.rkt: this has the functiongenerate-string-from-scribble-modulewhere you specify your scribble module's path and the arguments you want it to have access to and it returns the processed text template as a string,command-line-serialization.rkt: helper moduletemplate-test.c.indexed.scrbl: a test template (a C program that will takes 3 arguments, in a sequence, to be accessed by index)template-test.c.dictionary.scrbl: a test template (same C program as above, but this time accesses the arguments by key)template-test.rkt: test driver to expand the previous two templates
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
| [2026-07-13 10:26:49.771] [info] [Electron Main] command line arguments {} | |
| [2026-07-13 10:26:49.779] [info] [Electron Main] init services. | |
| [2026-07-13 10:26:49.780] [info] [Electron Main] packagesDir: C:\Users\david\AppData\Local\Programs\uhk-agent\resources | |
| [2026-07-13 10:26:49.860] [info] [Electron Main] Create new window. | |
| [2026-07-13 10:26:49.860] [info] [WindowState] load settings | |
| [2026-07-13 10:26:49.866] [info] [WindowState] loaded settings { | |
| x: -1736, | |
| y: 1061, | |
| width: 988, | |
| height: 1075, |
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
| [2025-06-11 08:43:53.136] [info] [Electron Main] command line arguments {} | |
| [2025-06-11 08:43:53.143] [info] [Electron Main] init services. | |
| [2025-06-11 08:43:53.143] [info] [Electron Main] packagesDir: C:\Users\david\AppData\Local\Programs\uhk-agent\resources | |
| [2025-06-11 08:43:53.213] [info] [Electron Main] Create new window. | |
| [2025-06-11 08:43:53.214] [info] [WindowState] load settings | |
| [2025-06-11 08:43:53.220] [info] [WindowState] loaded settings { | |
| x: 112, | |
| y: 1064, | |
| width: 1488, |
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
| // tap: ` | |
| // doubletap: ````` | |
| // long-press: escape | |
| // shift-tap: ~ | |
| ifShift final holdKey S-graveAccentAndTilde | |
| ifDoubletap final tapKeySeq graveAccentAndTilde graveAccentAndTilde | |
| ifTap final tapKey graveAccentAndTilde | |
| holdKey escape |
| location | layer |
|---|---|
| center | normal / shifted |
| top left | MOD |
| top right | Fn |
| bottom left | Mouse |
| center front | Key Id |
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
| [ | |
| { | |
| "name": "UHK w/ layers adjusted for P16 keyboard" | |
| }, | |
| [ | |
| { | |
| "c": "#459896", | |
| "fa": [ | |
| 1, | |
| 0, |
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
| /** Sometimes you might want to rethrow the same exception but with a little extra in the message. This allows | |
| * you to "clone" an exception but change the message. (C# exceptions have the capability to hold arbitrary | |
| * information via the `Data` property (a `Dictionary`).) | |
| */ | |
| @NonNull | |
| public static Throwable replaceMessageOf(@NonNull final Throwable ex, @NonNull final String msg) { | |
| // First try using reflection to just stomp on the exception instance's message | |
| if (false) { | |
| final var rex = stompOnMessageOf(ex, msg); |
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
| /* Looks like this: | |
| {"todo":[ | |
| {"isbn":"0064632105"}, | |
| {"isbn":"007001115X"}, | |
| {"isbn":"0070079749"}, | |
| ... | |
| */ | |
| public static class OneArrayElementPerLineNoWhitespacePrettyPrinter extends DefaultPrettyPrinter { | |
| public OneArrayElementPerLineNoWhitespacePrettyPrinter() {} |
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
| /* | |
| * Copyright (C) 2023 Bakin's Bits | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy of this | |
| * software and associated documentation files (the “Software”), to deal in the Software | |
| * without restriction, including without limitation the rights to use, copy, modify, | |
| * merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | |
| * permit persons to whom the Software is furnished to do so, subject to the following | |
| * conditions: | |
| * |
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
| Electrum's "History" page - showing transactions in and out - has a total at the bottom called "Balance", which, | |
| obviously, shows how much BTC is in the wallet. | |
| Except it doesn't. Because it doesn't include any amount that is in change addresses. |
NewerOlder