Skip to content

Instantly share code, notes, and snippets.

View FrostyX's full-sized avatar

Jakub Kadlčík FrostyX

View GitHub Profile
@kachayev
kachayev / dijkstra.py
Last active March 4, 2025 23:42
Dijkstra shortest path algorithm based on python heapq heap implementation
from collections import defaultdict
from heapq import *
def dijkstra(edges, f, t):
g = defaultdict(list)
for l,r,c in edges:
g[l].append((c,r))
q, seen, mins = [(0,f,())], set(), {f: 0}
while q:
@steder
steder / starcraft.el
Created March 7, 2012 04:17
Starcraft Minor Mode for Emacs
;; -*- coding: utf-8 -*-
;; starcraft.el -- track user APM (actions per minute) while using Emacs
;;
;; Copyright 2010 by Michael Steder
;; Author: Michael Steder ([email protected])
;; Created: 2010
;; Version: 1.0
;; Keywords: Actions per minute
;;
;; Inspired by a love of Starcraft and someones offhand comment

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: