Created
May 22, 2013 12:22
-
-
Save hellais/5627146 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
words = [ "best practices", "industry standard", "data retention", "common carrier", | |
"national security", "due diligence", "cyber-space", "Awareness", | |
"abuse of human rights", "lawful intercept", "censorship", | |
"ecosystem", "Digital Human Rights", "APT", "Transparency", "Open Data", | |
"Security Language", "Militarization of Cyberspace", "Big Data", | |
"E-Democracy", "Cyber Security", "Terrorism", "Anonymity", "Cyber Espionage", | |
"Hacktivism", "The Cloud", "Internet of Things", "Internet Policy", "Trolling", | |
"Cyber War", "Cyber Weapon", "Rule of Law", "Internet kill switch", | |
"Digital Divide", "Third World", "Internet Freedom", "Cyber 9/11", | |
"Organized Crime", "Child Abuse", "Whistleblowing", "Corruption" | |
] | |
output = """<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<title>Internet Paranoia BINGO</title> | |
</head> | |
<style type="text/css" media="all"> | |
body { | |
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; | |
font-weight: 300; | |
} | |
tr, td { | |
border: 2px solid black; | |
padding: 30px; | |
} | |
.word { | |
width: 100px; | |
} | |
.banner { | |
margin-left: 140px; | |
} | |
</style> | |
<body> | |
<img class="banner" src="internet-paranoia-banner.png"> | |
<table border="0"> | |
""" | |
for i in range(5): | |
line = "<tr>" | |
for i in range(5): | |
word = random.choice(words) | |
words.remove(word) | |
line += "<td><div class='word'>%s</div></td>" % word | |
line += "</tr>" | |
output += line | |
output += """ | |
</table> | |
</body> | |
</html> | |
""" | |
print output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment