Skip to content

Instantly share code, notes, and snippets.

@gujiaxi
gujiaxi / kindle_clippings_validate.py
Last active February 19, 2021 14:47
Validate duplicate highlights in Kindle clippings.
import sys
from collections import defaultdict
# This script is used for validating duplicate
# highlights of Kindle's "My Clippings.txt".
if len(sys.argv) <= 1:
print("Usage: ./{} \"My Clippings.txt\"".format(sys.argv[0]))
exit(1)

Keybase proof

I hereby claim:

  • I am gujiaxi on github.
  • I am gujiaxi (https://keybase.io/gujiaxi) on keybase.
  • I have a public key whose fingerprint is 3987 34D8 2EA1 A1B3 D934 7F9D 16B9 3FBF 3F91 F329

To claim this, I am signing this object:

@gujiaxi
gujiaxi / iz_cv.cls
Created January 26, 2018 03:55
A simple cv template for LaTeX.
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{iz_cv}[2018/01/26 CV class modified on joel_cv]
\LoadClass[11pt,a4paper]{article}
\usepackage{enumitem}
\usepackage{parskip}
\usepackage[hidelinks]{hyperref}
\usepackage[left=0.75in,top=0.6in,right=0.75in,bottom=0.6in]{geometry}
@gujiaxi
gujiaxi / md.css
Created January 22, 2018 07:44
A minimal markdown css
body {
margin: 0 auto;
font-family: Georgia, Times, serif;
color: #444;
max-width: 800px;
font-size: 18px;
line-height: 1.4em;
}
/* mobile view */
@media (max-width: 600px) {
@gujiaxi
gujiaxi / org-iz.css
Created July 13, 2017 03:59
Minimal style for html exported from orgmode.
html {
font-family: sans-serif;
font-size: 16px;
line-height: 1.15;
}
body {
width: 95%;
margin: 2%;
font: sans-serif;
line-height: 1.5em;
@gujiaxi
gujiaxi / instapaper2bm.py
Created May 8, 2017 06:37
Convert instapaper html to bookmarks.html
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import sys
import csv
import itertools
from operator import itemgetter
if len(sys.argv) < 2:
@gujiaxi
gujiaxi / bluesimple.css
Created March 27, 2017 09:15
orgmode css style for html export
/* @import url(http://fonts.googleapis.com/css?family=Open+Sans); */
body {
padding: 0;
background: #eee none repeat scroll 0 0;
max-width: 1000px;
margin: 0px auto;
padding: 1em;
@media (min-width: 800px) {
.centered {
margin: 0 auto;
max-width: 800px !important;
width: 800px !important;
}
}
body {
font-family: Helvetica, sans-serif;
line-height: 1.5;
@gujiaxi
gujiaxi / switchy-list.txt
Last active October 21, 2016 13:45
Switch Rule list for Chrome Proxy Switchy
*.4sqi.net
*.acm.org
*.akamaihd.net
*.amazonaws.com
*.appspot.com
*.bit.ly
*.blogger.com
*.blogspot.com
*.cdninstagram.com
*.cloudflare.com
@gujiaxi
gujiaxi / markdown.css
Created September 6, 2016 06:14
Let's make the Web prettier.
/* http://kevinburke.bitbucket.org/markdowncss/ */
body{
margin: 0 auto;
font-family: Georgia, Palatino, serif;
color: #444444;
line-height: 1;
max-width: 960px;
padding: 30px;
}