Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
breaking code into little bits

Dane Hillard daneah

💻
breaking code into little bits
View GitHub Profile
@daneah
daneah / after.py
Last active Nov 19, 2019
Copy & paste error
View after.py
one = '1'
two = '2'
three = '3'
thing = f'{one} {two} {three}'
@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