Skip to content

Instantly share code, notes, and snippets.

fasiha /
Created Aug 18, 2016 for Vim integration with python3: from

The current clang-format instructions are for Python2 Vim. If your Vim has only Python3 or if you load Python3 before Python2, those instructions won't work.

Therefore, (1) replace your with the file in this gist, from (2) Replace the relevant lines in .vimrc with:

map <C-K> :py3f ~/PATH/TO/<cr>
imap <C-K> <c-o>:py3f ~/PATH/TO/<cr>

N.B. Replace ~/PATH/TO with the actual path to

diegopacheco /
Last active Nov 19, 2019
How to install cqlsh only on Linux?
pip3 install cqlsh==4.1.1
cqlsh --version
# or...
sudo su root
pip install cqlsh==4.1.1
cqlsh --version
eddieh /
Last active Mar 26, 2021
libevent vs libuv

libevent vs libuv

Comparing libevent and libuv. My upfront biased: I want to like libevent. However, I want to objectively compare the two and make an informed decision.

What versions are we comparing?

  • libevent 2.0.22 (Stable) [2014-01-05]
  • libuv 1.8.0 (Stable) [2015-12-15]
olange /
Created Jan 4, 2015
Graphviz (DOT) Build System for Sublime Text 2 and 3

To transform the currently opened Graphviz source file (in DOT Language) into a PNG:

    "cmd": [ "dot", "-Tpng", "-o", "$file_base_name.png", "$file"],
    "selector": ""