Skip to content

Instantly share code, notes, and snippets.

💻
breaking code into little bits

Dane Hillard daneah

💻
breaking code into little bits
Block or report user

Report or block daneah

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@daneah
daneah / leo.py
Last active Sep 21, 2019
Leo file processing cleaned up
View leo.py
"""
Recursively examine directory structure verifying that leo files
don't have a size of 0 bytes. Also, verify that the corresponding
xml files don't have a size of 0 bytes and have the same date/time
stamp.
Pre-Requisites
1) Python 3.6 or higher
Needed so that can use pathlib and f-strings
"""
View hangman.py
#!/usr/bin/env python
import os
import pathlib
import random
DICTIONARY = 'popular-words.txt'
DIFFICULTY_LEVEL = 3
NUM_TRIES_OFFSET = 2
You can’t perform that action at this time.