Skip to content

Instantly share code, notes, and snippets.

View Cornellio's full-sized avatar

Peter Cornell Cornellio

View GitHub Profile
@Cornellio
Cornellio / overlap.py
Created September 13, 2017 03:26
Given two files that have lists of numbers in them, find the numbers that are overlapping. One file has a list of all prime numbers under 1000, and the other has a list of happy numbers up to 1000.
with open('prime_nums.txt') as f:
primes = f.read().splitlines()
with open('happy_nums.txt') as f:
happys = f.read().splitlines()
overlap = [n for n in primes if n in happys ]
print(overlap)
Dear <city counsil member>,
I am impressed with the leadership position that the City of Seattle recently took in unanimously enacting a local ordinance to divest in Wells Fargo because it is funding the Dakota Access Pipeline.
Please consider divesting City funds from Wells Fargo bank so that Redwood City is not supporting the Dakota Access Pipeline project. I don’t want our taxpayer dollars to be supporting this pipeline.
This controversial pipeline project threatens the environment and the native American people of the Standing Rock Sioux Tribe. In a world where the climate is changing due to human activity, we need to embrace investment in renewable energy, not more fossil fuel infrastructure.
Sincerely,