Skip to content

Instantly share code, notes, and snippets.

Pete Cornell Cornellio

  • San Francisco Bay Area
Block or report user

Report or block Cornellio

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Cornellio
Cornellio / overlap.py
Created Sep 13, 2017
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.
View overlap.py
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)
View gist:709af85b9e76303593f4f9d5f0cb14b3
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,
You can’t perform that action at this time.