Skip to content

Instantly share code, notes, and snippets.

View StrangeRanger's full-sized avatar

Hunter T. StrangeRanger

View GitHub Profile
@StrangeRanger
StrangeRanger / morse_code_converter.py
Last active July 23, 2025 20:07
Convert morse code to English and vise versa. (status: finished)
#!/usr/bin/env python3
#
# Convert morse code to English and vise versa.
#
# Notes:
# The script can only convert one way. If you mix morse code and English in your
# phrase/string, you will be asked to re-enter it.
#
# Version: v1.0.4
# License: MIT License
@StrangeRanger
StrangeRanger / number_factoring.py
Last active July 23, 2025 20:08
Take a user provided integer and find all of the possible factors for that number. (status: finished)
#!/usr/bin/env python3
#
# Take a user provided integer and find all of the possible factors for that number.
#
# Notes:
# Does not find the factors of negative numbers.
#
# Version: v1.1.3
# License: MIT License
# Copyright (c) 2020-2021 Hunter T. (StrangeRanger)
@StrangeRanger
StrangeRanger / matrix_phone_keywords.py
Last active March 8, 2026 00:55
A script that was written up for a scenario at a SkillsUSA programming competition. It was supposed to connect any of 10 specified keywords to a randomized phone number. If the randomized keyword is one of the 10 knowns keywords, the call is excepted, but if the keyword did not match any of the known keywords, the call is then denied. (status: u…
import random
import string
accepted_keywords = [
"(nothing)",
"abc",
"deft",
"ghi",
"jkl",
"mno",