Skip to content

Instantly share code, notes, and snippets.

Avatar

Hunter T. StrangeRanger

View GitHub Profile
View .prettierrc.yml
tabWidth: 4
printWidth: 100
useTabs: false
View Starred-Not-Starred.md

This is just a list of repositories I think are cool and would like to keep in mind, but prefer not to star them.

Awesome Lists

  • awesome - 😎 Awesome lists about all kinds of interesting topics
  • awesome-code-formatters - A curated list of awesome code formatting tools and libraries

Changelog

  • Git Chglog - CHANGELOG generator implemented in Go (Golang).
@StrangeRanger
StrangeRanger / _clang-format
Last active May 6, 2021
Java _clang-format configuration file (works for 'clang-format version 12.x.x')
View _clang-format
---
Language: Java
# BasedOnStyle: Chromium
AccessModifierOffset: -1
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: AcrossComments
AlignConsecutiveAssignments: AcrossComments
AlignConsecutiveBitFields: AcrossComments
AlignConsecutiveDeclarations: AcrossComments
AlignEscapedNewlines: Left
@StrangeRanger
StrangeRanger / _clang-format
Last active May 6, 2021
C/C++ _clang-format configuration file (works for 'clang-format version 11.x.x')
View _clang-format
---
Language: Cpp
# BasedOnStyle: Chromium
AccessModifierOffset: -1
#AlignAfterOpenBracket: AlwaysBreak
AlignAfterOpenBracket: Align
AlignConsecutiveMacros: false
AlignConsecutiveAssignments: true
AlignConsecutiveBitFields: true
AlignConsecutiveDeclarations: true
View Java_and_OO_Terminology.md

Java and OO Terminology

This file contains terminology specific to Java and most other OO-based languages. While anyone is more than welcomed to use this, I created it primarily for my own benefit. Unfortunately, not many sources provide an easy-to-understand explanation, and if they do, the information is often scattered throughout several different site. To make it easier, I decided to take some Java and OO-based terminology that I myself have had trouble understanding and created this file containing that information.


Table of Contents
View currency_converter.py
#!/usr/bin/env python3
########################################################################################
#
# Prerequisites
# -------------
# Install globally
# `python3 -m pip install requests`
# Install locally via pipenv (pipenv must already be installed)
# `pipenv install requests && pipenv shell`
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.
View character_counter.py
#!/usr/bin/env python3
########################################################################################
#
# Version
# -------
# v1.0.0
#
# License
# -------
View fail2ban-unban.sh
#!/bin/bash
# ########################################################################### #
# Unban IP #
# -------- #
# This script makes it easier to unban IP Addresses that where banned using #
# the application called "fail2ban". #
# ########################################################################### #
red=$'\033[1;31m'