Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
PSA: Open this file in a text editor, not in a browser.
Getting started in HTML and CSS!!
@zchr
zchr / comparison.py
Created September 16, 2015 16:10
Takes a list of all the Twitter followers for each presidential candidate, and compares how different politicians' followers overlap.
followers = {}
person = False
# Format: { twitter_id:[Candidate0, Candidate1], twiter_id:[Candidate0] }
for line in open('all.txt'):
row = line.rstrip()
if row[0] == '@':
person = row[1:row.find(' ')]
print person