Skip to content

Instantly share code, notes, and snippets.

@SharanSMenon
SharanSMenon / Hex_and_Binary.md
Last active August 15, 2022 12:52
Hex and Binary Python

Hex and Binary

There are two python programs in this gist

The first one is binary_letters.py

It has two functions: binary_to_text and text_to_binary

The seconf one is hex_letters.py

It has two functions: string_to_hex and hex_to_string

@natelandau
natelandau / .bash_profile
Last active July 27, 2024 05:39
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@molpopgen
molpopgen / cppbinary.cc
Last active February 20, 2024 06:33
Basics of binary I/O in C++
/*
Example of how to write binary stuff in C++
Illustrates some of the various quirks/annoyances
*/
#include <iostream>
#include <fstream>
#include <string>
#include <vector>