Skip to content

Instantly share code, notes, and snippets.

View jimmckeeth's full-sized avatar

Jim McKeeth jimmckeeth

View GitHub Profile
@jimmckeeth
jimmckeeth / FizzBuzzEnterpriseEdition.dpr
Last active June 5, 2024 17:05
FizzBuzzEnterpriseEdition in Delphi
// This is a very simple "overengineered" version of FizzBuzz written in Delphi
// See also
// https://github.com/jongeorge1/FizzBuzzEnterpriseEdition-CSharp
// https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition
program FizzBuzzEnterpriseEdition;
{$APPTYPE CONSOLE}
uses
@jimmckeeth
jimmckeeth / Weird.Boolean.ToString.pas
Created June 5, 2024 22:57
Using the ToString on a Boolean is weird
// function BoolToStr(B: Boolean; UseBoolStrs: Boolean = False): string;
Writeln('BoolToStr(??, True)'); // BoolToStr(??, True)
WriteLn('True = ' + BoolToStr(True, True)); // True = True
WriteLn('False = ' + BoolToStr(False, True)); // False = False
Writeln('BoolToStr(??, False)'); // BoolToStr(??, False)
WriteLn('True = ' + BoolToStr(True, False)); // True = -1
WriteLn('False = ' + BoolToStr(False, False)); // False = 0
// class function ToString(const Value: Boolean; UseBoolStrs:
// TUseBoolStrs = TUseBoolStrs.False): string;
@jimmckeeth
jimmckeeth / Heltec WSLv3 Meshtastic.md
Last active October 20, 2025 16:13
Setting up Heltec Wireless Stick Lite v3 for Meshtastic

Setting up Heltec Wireless Stick Lite v3 for Meshtastic

I picked up the Heltec Wireless Stick Lite v3 as it was the cheapest Meshtastic hardware I could find. The documentation was rather lacking and outdated, so after figuring it all out I decided to write it up here.

General Resources

@jimmckeeth
jimmckeeth / _shadertoy-view-splitter.md
Last active August 24, 2025 20:54
Shadertoy View Splitter - JavaScript to add a splitter on the Shadertoy view page.

This JavaScript injects a splitter on the Shadertoy view page to make it easy to resize the view of the shader and the code editing area. I made a pull request to the unoffical Shadertoy plugin to include this feature.

Just run the script in your browser's console window on a Shadertoy view page. Double-click the splitter to revert the position, and right-click it to remove it.

screenshot of the splitter
@jimmckeeth
jimmckeeth / McGraw download.md
Last active November 16, 2025 01:47 — forked from 101arrowz/README.md
Download a McGraw Hill Education eTextbook as ePub or Zip

Download a McGraw Hill Education ePub

UPDATE: Forked from the Gist by 101arrowz with a number of updates. It better handles files on multiple CDN servers, and the UI is updated. It allows you to choose which files to download (defaults to all, but I wanted to filter MP3 files), and gives you a choice to download as epub or zip. It also has detailed logging just in case some files fail. The script will attempt to repeat failed downloads. I've found it takes a few tries but usually works.

For educational and prersonal use only.

If you purchase a textbook from McGraw Hill, the website to view it is clunky and only works on some devices. You can't go to specific page numbers, the search is super slow, etc.

I believe this script is 100% legal. It doesn't bypass any copy protection. McGraw Hill publicly hosts their ebooks online in order for their web client to download it. This script [time shifts](https://en.wikipedia.org/wik