Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Jarcho jazcap53

View GitHub Profile
@econchick
econchick / gist:4666413
Last active Apr 29, 2022
Python implementation of Dijkstra's Algorithm
View gist:4666413
class Graph:
def __init__(self):
self.nodes = set()
self.edges = defaultdict(list)
self.distances = {}
def add_node(self, value):
self.nodes.add(value)
def add_edge(self, from_node, to_node, distance):
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname