Skip to content

Instantly share code, notes, and snippets.

Avatar

Hunter T. StrangeRanger

View GitHub Profile
@StrangeRanger
StrangeRanger / dotnet-sdk-not-found.sh
Last active Sep 7, 2022
Fixes problems cause by micosoft making .NET natively available on Ubuntu 22.04. For more information, refer to https://github.com/dotnet/core/issues/7699.
View dotnet-sdk-not-found.sh
#!/bin/bash
#
# Fixes problems cause by micosoft making .NET natively available on Ubuntu 22.04. For
# more information, refer to https://github.com/dotnet/core/issues/7699.
#
########################################################################################
#### [ Variables ]
## Modify output text color.
View if-statements
#!/usr/bin/env bash
a=true
b=false
c="cat"
func_zero() {
return 0
}
View Commit Types.md
@StrangeRanger
StrangeRanger / .prettierrc
Last active Sep 13, 2022
Configuration file for the formatting tool known as Prettier.
View .prettierrc
{
"tabWidth": 2,
"useTabs": false
}
@StrangeRanger
StrangeRanger / spinning-waiting-stick
Last active Sep 12, 2022
spinning-waiting-stick.sh
View spinning-waiting-stick
#!/usr/bin/env bash
#
# Provides two different methods that can be used to display a spinning stick that will
# continue to spin until a specific process is finished running.
#
# NOTE: 'method_two' is notiblely faster than 'method_one'. Despite this, it does not
# speak for the method's actual speed. That is dependent on how you use and
# implement the methods. For the case of the examples that I provided, 'method_one'
# is slower because I have it check if the incremented number is greater than or
# equal to the specified stopping number, for every iteration of the for loop.
@StrangeRanger
StrangeRanger / _clang-format
Last active Jun 7, 2022
Java _clang-format configuration file (works for 'clang-format version 14.x.x')
View _clang-format
---
Language: Java
# BasedOnStyle: Chromium
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveMacros: Consecutive
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveBitFields: Consecutive
AlignConsecutiveDeclarations: Consecutive
@StrangeRanger
StrangeRanger / _clang-format
Last active Mar 28, 2022
C/C++ _clang-format configuration file (works for 'clang-format version 14.x.x')
View _clang-format
---
Language: Cpp
# BasedOnStyle: Chromium
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveMacros: Consecutive
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveBitFields: Consecutive
AlignConsecutiveDeclarations: Consecutive
@StrangeRanger
StrangeRanger / currency_converter.py
Last active Jul 21, 2022
currency_converter.py
View currency_converter.py
#!/usr/bin/env python3
#
# Prerequisites:
# Install globally: `python3 -m pip install requests`
# Install locally via pipenv: `pipenv install requests`
#
# Version: v1.0.3
# License: MIT License
# Copyright (c) 2020-2021 Hunter T. (StrangeRanger)
#
@StrangeRanger
StrangeRanger / rock_paper_scissors.py
Last active Mar 7, 2022
rock_paper_scissors.py
View rock_paper_scissors.py
#!/usr/bin/env python3
#
# Reason For Creation: The creation of this little script was due to the fact that a
# math class required us to play rock paper scissors against
# someone to observe probability. I didn't have anyone to do it
# with at the time, so I created this.
#
# Version: v1.0.2
# License: MIT License
# Copyright (c) 2020-2021 Hunter T. (StrangeRanger)