Skip to content

Instantly share code, notes, and snippets.

View getChester's full-sized avatar
💭
I may be slow to respond.

getChester getChester

💭
I may be slow to respond.
  • Washington, D.C.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am getchester on github.
  • I am getchester (https://keybase.io/getchester) on keybase.
  • I have a public key whose fingerprint is 9F8A EFAA D176 B0DD A35D 24C7 33E3 420D 2A3B 85FD

To claim this, I am signing this object:

@getChester
getChester / fileCompare.py
Created March 19, 2013 01:35
Compare the differences of two files in which all elements are delimited by CRLF.
import sys
def compare_files(f1, f2):
with open(f1) as f:
set1 = set(f.readlines())
with open(f2) as f:
set2 = set(f.readlines())
for x in sorted(set1 ^ set2):
yield x.strip()