Skip to content

Instantly share code, notes, and snippets.

@mdsrosa
mdsrosa / dijkstra.py
Created November 21, 2015 04:36
Modified Python implementation of Dijkstra's Algorithm (https://gist.github.com/econchick/4666413)
from collections import defaultdict, deque
class Graph(object):
def __init__(self):
self.nodes = set()
self.edges = defaultdict(list)
self.distances = {}
def add_node(self, value):
@dannguyen
dannguyen / bashghostprompt.md
Last active March 14, 2016 11:12
Making a Love Ghost w/ Cyborg Eye as your Bash prompt