Skip to content

Instantly share code, notes, and snippets.

View gujiaxi's full-sized avatar

Isaac Gu gujiaxi

View GitHub Profile
@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 / 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 / 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 / gist:c2c16fed258b98b3b46b987890ab63a8
Created May 28, 2016 04:34 — forked from barik/gist:3140646
Sumatra PDF with Emacs
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(TeX-PDF-mode t)
'(TeX-master nil)
'(TeX-source-correlate-method (quote synctex))
'(TeX-source-correlate-mode t)
'(TeX-source-correlate-start-server (quote ask))
@gujiaxi
gujiaxi / GoogleMaps
Created March 1, 2016 11:43
Set markers on Google Maps.
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Google Maps</title>
<style>
html, body {
height: 100%;
margin: 0;
@gujiaxi
gujiaxi / cVimrc
Last active September 3, 2016 07:32
cVim (Vim for Google Chrome) configuration
let blacklists = ["*://mail.google.com/*","*://inbox.google.com/*","*://www.inoreader.com/*","*://twitter.com/*","*://ide.c9.io/*"]
@gujiaxi
gujiaxi / .tmux.conf
Last active March 10, 2016 03:30
Minimalist Tmux Config for Servers
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# navigate panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
@gujiaxi
gujiaxi / minttyrc
Created May 5, 2015 03:25
mintty config file
BoldAsFont=yes
CursorType=block
AllowBlinking=yes
Font=Input
FontIsBold=no
FontHeight=11
Columns=75
Rows=25
Term=xterm-256color
#!/usr/bin/env python
# -*- coding: utf-8 -*-
bookList = {}
bookName = ''
clippings = open('1524.txt', 'r')
line = clippings.readline()
bookTitle = line[:-1]
bookList[bookTitle] = line
while 1:
@gujiaxi
gujiaxi / error503.html
Created October 17, 2012 14:14
Error 503
<!DOCTYPE html>
<html lang=en>
<meta charset=utf-8>
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
<title>Error 503 (Server Error)!!1</title>
<style>
*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}* > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}
</style>
<a href=//www.google.com/><img src=//www.google.com/images/errors/logo_sm.gif alt=Google></a>
<p><b>503.</b> <ins>That’s an error.</ins>