Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"$if(lang)$ lang="$lang$" xml:lang="$lang$"$endif$>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="pandoc" />
@dfeng
dfeng / tufte-common.def
Created June 19, 2015 12:53
Tufte Adjustment for MinionPro
%%
%% This file contains the code that is common to the Tufte-LaTeX document classes.
%%
\ProvidesFile{tufte-common.def}[2011/06/18 v3.5.2 Common code for the Tufte-LaTeX styles]
%%
% The `xkeyval' package simplifies the user interface for the document class options
\RequirePackage{xkeyval}
@dfeng
dfeng / molokai.vimp
Created June 18, 2015 13:37
Molokai Color Scheme for Vimperator
hi Normal background: #121112; color:#D0CFD0;
hi CmdLine background: #121112; color:#D0CFD0;
hi CompGroup background: #121112; color:#D0CFD0;
hi CompTitle background: #1c1b1c; font-weight: bold;
hi CompTitle>* color: #D0CFD0; padding: 1px 0.5ex;
hi CompItem background:#121112; color:#D0CFD0;
hi CompItem[selected] color: #77438F; background: #262426;
hi CompDesc width: 500px; max-width: 500px; color: #465457;
hi CompMsg margin-left: 16px;
hi ErrorMsg background: #D7005F; color: #D0CFD0; font-weight: bold;
@dfeng
dfeng / .vimperatorrc
Created June 18, 2015 13:37
Vimperator Settings
"===[ Settings ]========================================================
set complete=sl
set wildmode='list:full'
set noerrorbells
set! javascript.options.jit.chrome=true
set hintchars=theuigjkdsal
set defsearch=google
set gui=none
@dfeng
dfeng / userChrome.css
Created June 18, 2015 13:35
Custom Chrome for TreeStyle Tabs
#main-window .tab-close-button { display:none!important; }
#tabbrowser-tabs ~ #alltabs-button { display:none!important; }
.tabbrowser-tabs[treestyletab-mode="vertical"]
.tabbrowser-arrowscrollbox > scrollbox {
overflow-y: hidden !important;
}
/*.tabbrowser-tabs[treestyletab-mode="vertical"]
.tabbrowser-tab {
@dfeng
dfeng / hidden_bar.css
Created June 18, 2015 13:33
Hidden Reader Bar
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix("about:reader");
#reader-toolbar,#reader-toolbar .button:not(:hover) {
background-color:transparent !important;
border:none!important;
}
#reader-toolbar:not(:hover)>*:not([open]){
visibility:hidden;
}
@dfeng
dfeng / gists.zsh
Created June 9, 2015 19:19
Gist to RawGist
function gists() {
/usr/local/bin/gist $1 | sed s/gist.github/rawgit/ | sed s/.com/.com\\\/dfeng/ | sed -e "s/$/\\/raw\/$1/"
}
@dfeng
dfeng / carbon.css
Last active June 21, 2019 18:11
Reddit Carbon
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain('reddit.com') {
body{
background:#1a1a1a;
color:#ddd
}
.comment .usertext .md p>a:visited,.md a,.res.res-nightmode .tagline a,a,h2 a:visited{
color:#3498db;
\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{2mm}
\usepackage{tikz}
\usetikzlibrary{positioning, calc}
% \usepackage[minionint, loosequotes, swash]{MinionPro}
% \usepackage{lmodern}
\renewcommand{\familydefault}{\sfdefault}
\begin{document}
@dfeng
dfeng / grade.R
Created May 9, 2015 04:46
roster + grades -> ug + gs
# Start R Grading Helper
# ==========================
# === Global Variables ===
# ==========================
folder <- "/Users/dfeng/Downloads/Grading"
roster_filename <- "ml_roster.csv"
grade_filename <- "ml_hw.csv"