This file contains 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
#separate pdf based on a phrase that can be used to delineate break points and names files by first word after that break point | |
import PyPDF2 | |
import pdfplumber | |
if __name__ == '__main__': | |
pdf_path = 'MBA Report Creator.pdf' | |
pdf_break_point = 'Student_Number ' | |
base_pdf = PyPDF2.PdfFileReader(pdf_path) | |
new_pdf = PyPDF2.PdfFileWriter() |
This file contains 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
{ | |
"melee_attack": 4, | |
"melee_attack_rr": 0, | |
"melee_defence": 4, | |
"melee_defence_rr": 0, | |
"ranged_attack_rr": 0, | |
"ranged_defence": 4, | |
"ranged_defence_rr": 0, | |
"psyche_attack_rr": 1, | |
"psyche_defence": 4, |
This file contains 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
import ui | |
from random import randint | |
import time | |
import random | |
import json | |
w,h = ui.get_screen_size() | |
view = ui.View(bg_color='#0D76A8', frame=(0,0,w,h)) | |
N = 4 #size of grid |
This file contains 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
#!/usr/bin/env python | |
# coding: utf-8 | |
# You need PIL <http://www.pythonware.com/products/pil/> to run this script | |
# Download unifont.ttf from <http://unifoundry.com/unifont.html> (or use | |
# any TTF you have) | |
# Copyright 2011 Álvaro Justen [alvarojusten at gmail dot com] | |
# License: GPL <http://www.gnu.org/copyleft/gpl.html> | |
from image_utils import ImageText |
This file contains 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
import random | |
def welcome(): | |
print("Welcome to HangMan!\n" | |
"You will have to guess my secret word!\n" | |
"If you fail 5 attempts, you will be hung!\n") | |
def secretWord(): |