Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# Python 2 and 3 compatible.
#This script takes in a PDF and creates two new PDFs. One has the black and
#white pages and the other has the colour pages. It also takes duplex printing
#into account. So a black and white side which is on the same sheet as a colour
#side will be placed into the colour PDF.
#This is from a script created by Iain Murray. The original comment is below.
#This version simply has some different defaults and removes the PDFtoPPM.
@Yacoby
Yacoby / CompSoc Hoodie
Last active August 29, 2015 13:56 — forked from edran/CompSoc Hoodie
#!/usr/bin/env python
class ExamBoard(object):
def submit(self, work):
work_is_passing_grade = len([work]) > 0
return work_is_passing_grade
class Society(object):
#!/usr/bin/env python
class Society(object):
def __init__(self, name):
self.name = name
self.members = []
def add_member(self, name, matric_number):