Skip to content

Instantly share code, notes, and snippets.

View modle's full-sized avatar

Matthew Odle modle

View GitHub Profile

install python dependencies

flask
flask-cors

app/__init__.py basic flask thing

@modle
modle / .bashrc
Last active January 11, 2017 18:42
.bashrc which loads a list of files
files=(somefile1 somefile2)
path="$HOME/path/to/dir/containing/files/"
for file in ${files[@]}
do
file_to_load=$path$file
if [ -f "$file_to_load" ];
then
. $file_to_load
echo "loaded $file_to_load"
fi
@modle
modle / prompt.bash
Created May 13, 2016 17:56 — forked from nabrahamson/prompt.bash
A Fancy Bash Prompt
#!/bin/bash
#
# Fancy prompt
#
# Source this file in your .bashrc
#
# Configuration options:
#
# Set _prompt_config to an array of strings. Each string is in the