Skip to content

Instantly share code, notes, and snippets.

View Exide's full-sized avatar
🀘
Chillin'

Ryan Zander Exide

🀘
Chillin'
View GitHub Profile
@Exide
Exide / standard.h
Last active May 6, 2025 00:55
Personal C-flavored C++ Standard Library
#pragma once
// SI names for byte amounts
#define Byte 1
// binary units
#define Kibibyte (Byte * 1024)
#define Mebibyte (Kibibyte * 1024)
#define Gibibyte (Mebibyte * 1024)
// standard units
#define Kilobyte (Byte * 1000)
@Exide
Exide / emoticon-to-emoji.json
Last active December 23, 2021 05:56
A mapping of emoticons to emojis.
{
":)": "πŸ™‚",
"(:": "πŸ™ƒ",
";)": "πŸ˜‰",
":D": "πŸ˜€",
";p": "😜",
":|": "😐",
":(": "πŸ™",
":p": "πŸ˜›",
"xD": "πŸ˜†",
@Exide
Exide / set_git_user.sh
Last active May 15, 2022 04:45
Set the local Git user.name and user.email based on the remote URL
#!/bin/bash
set -eo pipefail
if [[ $1 == "--debug" ]]; then
set -x
fi
if [[ ! -d ".git" ]]; then
echo "no .git directory found" >&2