Skip to content

Instantly share code, notes, and snippets.

View jskopek's full-sized avatar
🇨🇦
Canadian

Jean-Marc Skopek jskopek

🇨🇦
Canadian
View GitHub Profile
class BinaryTreeNode(object):
value = None
left = None
right = None
def __init__(self, value):
self.value = value
def generate_dot_diagram(self, graph=None):
if not graph:
import oembed
content = "http://www.youtube.com/watch?v=c9YrfHVB4ic"
consumer = oembed.OEmbedConsumer()
youtube = oembed.OEmbedEndpoint('http://www.youtube.com/oembed', ['http://*youtube.com*'])
vimeo = oembed.OEmbedEndpoint('http://vimeo.com/api/oembed.json', ['http://*vimeo.com*'])
consumer.addEndpoint(youtube)
consumer.addEndpoint(vimeo)