(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
def bellman_ford(graph, source): | |
# Step 1: Prepare the distance and predecessor for each node | |
distance, predecessor = dict(), dict() | |
for node in graph: | |
distance[node], predecessor[node] = float('inf'), None | |
distance[source] = 0 | |
# Step 2: Relax the edges | |
for _ in range(len(graph) - 1): | |
for node in graph: |
sudo apt-get install python-pip
or wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
sudo pip install powerline-status
git clone https://github.com/powerline/fonts.git && cd fonts && sh ./install.sh
set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/
> " Always show statusline
# Start `coffee d3-server.coffee` | |
# Then visit http://localhost:1337/ | |
# originally from: https://gist.github.com/Caged/6407459 | |
d3 = require('d3') | |
http = require('http') | |
jsdom = require('jsdom') | |
http.createServer((req, res) -> | |
# Chrome automatically sends a requests for favicons | |
# Looks like https://code.google.com/p/chromium/issues/detail?id=39402 isn't |