Skip to content

Instantly share code, notes, and snippets.

View gujiaxi's full-sized avatar

Isaac Gu gujiaxi

View GitHub Profile
@gujiaxi
gujiaxi / savedio-import.py
Created August 31, 2016 02:37
Import bookmarks to http://saved.io/
import requests
f = open('./bookmarks.html')
url = 'http://devapi.saved.io/bookmarks/'
devkey = '<dev key>'
usrkey = '<user key>'
def parse(w):
r = {}
p1, p2, none = w.split(">")
@gujiaxi
gujiaxi / gh-pandoc.css
Created September 6, 2016 05:51 — forked from forivall/gh-pandoc-LICENSE.md
Github-style css for pandoc
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif; /* 1 */
@gujiaxi
gujiaxi / GitHub3.css
Created September 6, 2016 05:51 — forked from devxoul/GitHub3.css
GitHub CSS for MacDown
/*
* GitHub CSS for MacDown
* https://gist.github.com/devxoul/8df5792ce330985a633b
* http://sindresorhus.com/github-markdown-css/
*/
@font-face {
font-family: octicons-link;
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYF
@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;
}
@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
@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 / 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;
@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 / 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 / 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) {