Skip to content

Instantly share code, notes, and snippets.

View monkeylyf's full-sized avatar

Yifeng Liu monkeylyf

  • Google
  • Bay area
View GitHub Profile
@Mistobaan
Mistobaan / build_vim.sh
Last active July 18, 2019 18:22
Compile VIM from branch on UBUNTU 16.04
#!/bin/sh
set -e
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev mercurial libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev
sudo mkdir -p /usr/include/lua5.1/include
sudo ln -s /usr/include/luajit-2.0 /usr/include/lua5.1/include
@teepark
teepark / btree.py
Created September 9, 2010 22:45
a pure-python B tree and B+ tree implementation
import bisect
import itertools
import operator
class _BNode(object):
__slots__ = ["tree", "contents", "children"]
def __init__(self, tree, contents=None, children=None):
self.tree = tree