Skip to content

Instantly share code, notes, and snippets.

View brandonmburroughs's full-sized avatar

Brandon M. Burroughs brandonmburroughs

View GitHub Profile
@brandonmburroughs
brandonmburroughs / predict_missing_words.py
Created August 12, 2017 16:08
A small module to predict missing words in text
"""A small module to predict missing words in text."""
import operator
from collections import defaultdict
def next_word_probability(sampletext, word):
"""Get the probability of words follow the given word from the given sample text.
Parameters
----------
@brandonmburroughs
brandonmburroughs / monitor.sh
Created April 30, 2017 23:50
Bash one liner to monitor copying a large file/folder from one location to another
watch -n1 'echo $(du -s /path/to/original/file | cut -f 1)/$(du -s /path/to/copy/file | cut -f 1)*100 | bc -l'
@brandonmburroughs
brandonmburroughs / broken_link_finder.py
Created April 30, 2017 22:35
Find broken links on a webpage
@brandonmburroughs
brandonmburroughs / data_science_profile.py
Created March 2, 2015 14:24
This code generates your Data Science profile plot as described in "Doing Data Science" by Cathy O'Neil and Rachel Schutt.
# -*- coding: utf-8 -*-
"""
Title: Data Science Profile
Author: Brandon M. Burroughs
Description: This code generates your Data Science profile plot as described in
"Doing Data Science" by Cathy O'Neil and Rachel Schutt.
Feel free to contact me with any questions, suggestions, or corrections!
Email: brandonmburroughs@gmail.com
LinkedIn: https://www.linkedin.com/in/brandonmburroughs
Twitter: @ToTheBurroughs