Skip to content

Instantly share code, notes, and snippets.

View joeybaumgartner's full-sized avatar

Joe Baumgartner joeybaumgartner

View GitHub Profile
@joeybaumgartner
joeybaumgartner / dreamphone-flow-chart.md
Created January 9, 2024 01:32
Dreamphone Game Logic Flow Cahrt
flowchart TB
    Identifier_Text
    A((Start Button Pressed))-->B(RNG New Crush)
    B-->C("Prompt for number of players")
    C-->D[["Name Players"]]
    D-->E{Game Won?}
    E-- No -->F("Prompt for Choice")
    F-- Dial -->G[Dial]
 F-- Notepad -->H[Notepad]
@joeybaumgartner
joeybaumgartner / Rename-Saves.ps1
Created September 1, 2023 12:54
Utility to rename PS game saves
[CmdletBinding()]
param (
[Parameter()]
[string]
$Path,
[Parameter()]
[string]
$PsxList
)
@joeybaumgartner
joeybaumgartner / man2pdf.sh
Last active December 21, 2023 06:23
Script for opening PDF documents in Preview on macOS Ventura and newer.
#!/bin/sh
if [ $# -lt 1 ]
then
echo “man2pdf [man page name]”
exit
fi
tempfoo=`basename $0`
TMPPDFFILE=`mktemp /tmp/${tempfoo}.XXXXXX` || exit 1
@joeybaumgartner
joeybaumgartner / retrotink-5x-pro-ir-codes.md
Last active January 8, 2024 01:55
All IR Commands for the Retrotink 5X Pro (based on original documentation prior to version 2.xx firmware)
Button Function IR Code
Power Power button and save settings 0x1FE817E
Menu Cycle to Next Output Resolution 0x1FEC13E
Home Cycle to Next Input 0x1FECE31
Up Arrow Shift Image Up (1080p over) 0x1FE1CE3
Down Arrow Shift Image Down (1080p over) 0x1FE02FD
Left Arrow Previous OSD option 0x1FEEC13
Right Arrow Next OSD option 0x1FE9C63
OK Cycle through items within option 0x1FEC837
@joeybaumgartner
joeybaumgartner / CBC Widget.js
Last active November 26, 2020 20:22
CBC Scriptable Widget
/*
You can override the default CBC feed by specifying the RSS
feed you would prefer to use through the parameters field in
the widget. Available CBC RSS feed are available here:
https://www.cbc.ca/rss/
*/
function unescapeHTML(str) {//modified from underscore.string and string.js
return str.replace(/\&([^;]+);/g, function(entity, entityCode) {
var escapeChars = { lt: '<', gt: '>', quot: '"', apos: "'", amp: '&' };