Skip to content

Instantly share code, notes, and snippets.

View PhillipNordwall's full-sized avatar

Phillip Nordwall PhillipNordwall

  • Dell
  • Everett WA
View GitHub Profile
(k for k,g in itertools.groupby([1,2,3,3,4,5]) if sum(1 for _ in g) > 1)
from heapq import heappop, heapify, _siftup as siftup
def simerge(*iterables):
# Put the first value of each iterator, and the next function
# into a tuple in the heap
h = []
for i in map(iter, iterables):
try:
h.append([i.__next__(), i.__next__])
except StopIteration:
pass
@PhillipNordwall
PhillipNordwall / keybase.md
Last active August 29, 2015 14:01
keybase.md

Keybase proof

I hereby claim:

  • I am phillipnordwall on github.
  • I am phillipnordwall (https://keybase.io/phillipnordwall) on keybase.
  • I have a public key whose fingerprint is 1ECD A7B0 BCCA 4585 BF23 9AA3 49D1 7379 8F36 75D0

To claim this, I am signing this object: