Skip to content

Instantly share code, notes, and snippets.

# First clone the repo as above
git clone git://github.com/alloy/macvim.git
# Enter src directory
cd macvim/src
# configure with the flags you want
./configure --with-features=huge \
--enable-rubyinterp \
--enable-pythoninterp \
@imginohu
imginohu / replace_css_readability.py
Created June 30, 2013 10:37
replace readability's default epub css for better nook simple touch reading
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import argparse
import shutil
from urllib import request
import zipfile
def replace_css(file, css):
zin = zipfile.ZipFile(file)
@imginohu
imginohu / readlist_epub.css
Created June 29, 2013 06:13
Optimized css for epub exported by readability in NOOK Touch
@font-face {
font-family: "DroidFont", serif, sans-serif;
font-weight: normal;
font-style: normal;
src: url(res:///system/fonts/DroidSansFallback.ttf);
}
@font-face {
font-family: "DroidFont", serif, sans-serif;
font-weight: bold;
font-style: normal;