Skip to content

Instantly share code, notes, and snippets.

View JosephPenaQuino's full-sized avatar
🎯
Focusing

Joseph JosephPenaQuino

🎯
Focusing
View GitHub Profile
@kwmiebach
kwmiebach / pytest.md
Last active April 22, 2024 19:33 — forked from amatellanes/pytest.sh
pytest cheat sheet

Usage

(Create a symlink pytest for py.test)

pytest [options] [file_or_dir] [file_or_dir] ...

Help:

@econchick
econchick / gist:4666413
Last active December 22, 2023 13:32
Python implementation of Dijkstra's Algorithm
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):