Skip to content

Instantly share code, notes, and snippets.

View jdunck's full-sized avatar

Jeremy Dunck jdunck

View GitHub Profile
@jdunck
jdunck / heap.py
Created March 13, 2019 04:44
Min/Max heap for python
import heapq
class Heap(object):
def __init__(self, max=False):
self.max = max
self.data = []
@property
def delta(self):
return -1 if self.max else 1
def push(self, item):
@jdunck
jdunck / example.html
Created March 17, 2019 18:26
crawl stub
<html>
<body>
<img src="foo"/>
<img src="bar"/>
</body>
</html>