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 | |
# ---------- | |
# Bootstrap a new environment using my preferred packages | |
# curl -L curl -L https://gist.githubusercontent.com/sminez/2a0bce386ad106f33d2ebf9a003dce75/raw/044cbc55779f1013a111fc42cfb4b76fb638aed4/bootstrap.sh | |
echo "Bootstrapping the environment" | |
echo "Anything and everything that can be apt-get installed!" | |
sudo apt-get install -y software-properties-common | |
echo "NeoVim official PPA" | |
sudo add-apt-repository ppa:neovim-ppa/stable |
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 | |
# ---------- | |
# Initialise and manage your dotfiles using a ~/.dots repo | |
# restore using `git clone --bare <remote-repo>` | |
dot_dir=".dots" | |
dot_dot_file=".my-dots" | |
_dots="git --git-dir=$HOME/$dot_dir/ --work-tree=$HOME" | |
extra_args="" | |
add_remote=false |
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 seaborn as sns | |
import matplotlib.pyplot as plt | |
DEFAULT_CMAP = 'RdYlBu_r' | |
def show_missing_data(df, cmap=DEFAULT_CMAP): | |
''' |
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
"============================================================================ | |
" .: I.D.A-M .vimrc :. | |
" -------------------- | |
" I've tried to keep this in some sort of sane order with similar functionality | |
" being grouped together and a _lot_ of comments to explain what everything | |
" does! | |
" I'm also using my .vimrc as a place to keep notes on useful tips and tricks | |
" as and when I find them. (http://www.vimbits.com & http://vimawesome.com ftw!) | |
" |
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 requests | |
import argparse | |
def print_dict(d, level=0): | |
''' | |
Convert a python dict to a pretty-print string. | |
Supports strings, nested dicts and lists as values. | |
''' | |
new_level = level + 1 |
NewerOlder