This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am elamdf on github. | |
* I am elamdf (https://keybase.io/elamdf) on keybase. | |
* I have a public key ASAuW4YoRtdTGl5sAHSKkyYz7hr7zYnaZreddqYule-8LQo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -o pipefail | |
mkdir -p ~/Downloads | |
cd ~/Downloads | |
git clone https://github.com/neovim/neovim.git | |
cd neovim | |
make CMAKE_EXTRA_FLAGS="-DCMAKE_INSTALL_PREFIX=$HOME/.neovim" | |
make install | |
echo "export PATH=$HOME/.neovim/bin:$PATH" >> ~/.bashrc | |
echo "alias vi=nvim" >> ~/.bashrc | |
git clone https://github.com/elamdf/nvim.git ~/.config/nvim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import matplotlib.pyplot as plt | |
# Load your dataset | |
data = pd.read_csv('anthroseriationdatafinal.csv') | |
data['Date of Death'] = pd.to_datetime(data['Date of Death'], errors='coerce') # make misinputs play nice | |
language_grouped = data.groupby('Which Language used')['Age at Death'] | |
average_age_by_language = language_grouped.mean() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a last-window | |
set -g default-command $SHELL | |
bind-key f run-shell "tmux neww tms" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import getpass | |
import subprocess | |
from typing import List, Optional | |
import uuid | |
import sky | |
# (username, mac addr last 4 chars): for uniquefying users on shared-account | |
# cloud providers. | |
_user_and_mac = f'{getpass.getuser()}-{hex(uuid.getnode())[-4:]}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: resnet-app-storage | |
workdir: ~/Downloads/tpu | |
resources: | |
cloud: gcp | |
accelerators: V100:1 | |
num_nodes: 1 | |
file_mounts: | |
~/.aws/credentials: ~/.aws/credentials |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: resnet-app-storage | |
workdir: ~/Downloads/tpu | |
# THE TPU FOLDER MUST CONTAIN sky.sh (seen below) | |
resources: | |
cloud: gcp | |
accelerators: V100:1 | |
num_nodes: 1 | |
file_mounts: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: resnet-app-storage | |
workdir: ~/Downloads/tpu | |
resources: | |
cloud: gcp | |
# instance_type: p3.2xlarge | |
instance_type: n1-highmem-8 | |
# storage: List[sky.Storage] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
cache=0 | |
else | |
if [ $1 -eq 1 ]; then | |
cache=1 | |
else | |
cache=0 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/python3 | |
from os import walk | |
from os.path import exists | |
import os | |
import subprocess | |
from subprocess import run, PIPE | |
from timeit import timeit | |
import csv | |
from datetime import datetime | |
import pickle |
NewerOlder