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
"""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 | |
---------- |
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
watch -n1 'echo $(du -s /path/to/original/file | cut -f 1)/$(du -s /path/to/copy/file | cut -f 1)*100 | bc -l' |
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: Broken Link Finder | |
Author: Brandon M. Burroughs | |
Description: Give the URL for a page and this will find all broken links on | |
that page. Currently, "broken" is defined as return page not found. | |
""" | |
import requests | |
from bs4 import BeautifulSoup |
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
# -*- 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 |