Skip to content

Instantly share code, notes, and snippets.

View binaryaaron's full-sized avatar

Aaron Gonzales binaryaaron

  • Boulder, Colorado, USA
View GitHub Profile
@binaryaaron
binaryaaron / 3rdparty BUILD
Last active July 16, 2024 00:35
pants + torch woes
TORCH_VERSION = "2.3.1"
CUDA_VERSION = "cu118"
TORCH_CUDA_WHEEL_URL = "https://download.pytorch.org/whl/cu118/torch-2.3.1%2Bcu118-cp311-cp311-linux_x86_64.whl#sha256=5b0d531814886573cbe8c8ca91d17676f96bbaa33b569dd37ea235f124314e97"
TORCH_LINUX_CPU_WHEEL_URL = "https://download.pytorch.org/whl/cpu/torch-2.3.1%2Bcpu-cp311-cp311-linux_x86_64.whl#sha256=a272defe305dbd944aa28a91cc3db0f0149495b3ebec2e39723a7224fa05dc57"
@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