Skip to content

Instantly share code, notes, and snippets.

View abrahamy's full-sized avatar

Abraham Yusuf abrahamy

View GitHub Profile
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active July 28, 2025 14:53
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@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):