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 September 7, 2022 18:34
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
}
@StrangeRanger
StrangeRanger / Commit Types.md
Last active December 6, 2022 19:46
Commit Types.md
View Commit Types.md
View C Programming Notes.md

Introduction

Table of Contents


[TOC]


@StrangeRanger
StrangeRanger / .prettierrc
Last active September 13, 2022 17:38
Configuration file for the formatting tool known as Prettier.
View .prettierrc
{
"tabWidth": 2,
"useTabs": false
}
@StrangeRanger
StrangeRanger / spinning-waiting-stick
Last active September 12, 2022 16:24
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 January 24, 2023 17:13
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: Left # Maybe: Previously None
AlignConsecutiveAssignments: Consecutive
AlignConsecutiveBitFields: Consecutive
AlignConsecutiveDeclarations: Consecutive
AlignConsecutiveMacros: Consecutive
@StrangeRanger
StrangeRanger / _clang-format
Last active March 28, 2022 18:14
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 July 21, 2022 11:43
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 March 7, 2022 19:51
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)