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 November 25, 2024 22:01
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