Skip to content

Instantly share code, notes, and snippets.

View binaryaaron's full-sized avatar

Aaron Gonzales binaryaaron

View GitHub Profile
@binaryaaron
binaryaaron / mtga_open.sh
Last active August 7, 2023 20:19
Script to open magic the gathering arena on MacOS with correct resolution.
#!/bin/bash
help()
{
# Display Help
echo "Launches MTGA with Epic's command line options and fills in screen
resolution"
echo
echo "Syntax: mtga_open.sh [h|r]"
echo "options:"
@binaryaaron
binaryaaron / pipeable_function_decorator.py
Last active June 27, 2018 15:23
DataFrame pipeable function decorator
from functools import wraps
def pipeable_func(func):
"""allows any function to be used in a
``.pipe`` context on a dataframe, assigning output from this function as applied
to a dataframe column.
Usage:
@pipeable_func
def is_odd(n):
@binaryaaron
binaryaaron / build_sphinx_docs.sh
Last active January 9, 2018 17:39
github pages sphinx building script
#!/bin/bash
if [ $# -ne 2 ]; then
echo "Error: Please provide a branch name and repo name from which documentation will be built";
exit 1
fi
BRANCH_NAME=$1
REPO_NAME=$2