Skip to content

Instantly share code, notes, and snippets.

View daneah's full-sized avatar
💻
breaking code into little bits

Dane Hillard daneah

💻
breaking code into little bits
View GitHub Profile
@daneah
daneah / after.py
Last active November 19, 2019 15:53
Copy & paste error
one = '1'
two = '2'
three = '3'
thing = f'{one} {two} {three}'
@daneah
daneah / leo.py
Last active September 21, 2019 13:54
Leo file processing cleaned up
"""
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
"""
@daneah
daneah / hangman.py
Last active December 4, 2018 14:43
Hangman
#!/usr/bin/env python
import os
import pathlib
import random
DICTIONARY = 'popular-words.txt'
DIFFICULTY_LEVEL = 3
NUM_TRIES_OFFSET = 2