Skip to content

Instantly share code, notes, and snippets.

@pluskid
pluskid / sample-resume.tex
Last active January 7, 2022 01:08
Sample resume template
% Some people asked the LaTeX template for http://pluskid.org/assets/chiyuan-resume.pdf
% So I put a sample here. Feel free to use / modify it. Note you need to use xelatex to
% compile it and change the fonts to the ones you prefer and have on your system.
\documentclass[11pt]{article}
\usepackage{color}
\definecolor{ColorURL}{rgb}{0.1,0.12,0.45}
\usepackage[colorlinks=true,urlcolor=ColorURL]{hyperref}
\usepackage{fontspec,xunicode,xltxtra}
\usepackage[left=.8in,right=.8in,top=.9in,bottom=.7in]{geometry}
\usepackage{setspace}
@pluskid
pluskid / report-template.tex
Last active May 26, 2023 00:40
A LaTeX template that I use for writing notes and reports.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Use the koma-script document style
\documentclass{scrbook}
\KOMAoptions{twoside=false} % disable two-side formatting for scrbook
% alternatively, for shorter essay, use the following
% \documentclass{scrartcl}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Useful packages
@pluskid
pluskid / tex-shortcut.vim
Last active August 29, 2015 14:21
UltiSnips shortcuts for typing TeX symbols
" shortcuts for TeX symbols
autocmd FileType tex inoremap <buffer> <silent> __ __<C-R>=UltiSnips#Anon('_\{${1:${VISUAL}}\}',
\ '__', '', 'i')<cr>
autocmd FileType tex inoremap <buffer> <silent> ^^ ^^<C-R>=UltiSnips#Anon('^\{${1:${VISUAL}}\}',
\ '^^', '', 'i')<cr>
autocmd FileType tex inoremap <buffer> <silent> (( ((<C-R>=UltiSnips#Anon('\left(${1:${VISUAL}}\right)',
\ '((', '', 'i')<cr>
autocmd FileType tex inoremap <buffer> <silent> `a `a<C-R>=UltiSnips#Anon('\alpha',
@pluskid
pluskid / init.vim
Last active October 16, 2023 20:52
~/.config/nvim/init.vim
"================================================================================
" Setups
" 1. Install vim-plug
" 2. Run `:PlugInstall` in NeoVim
"================================================================================:
"================================================================================
" Install Plugins
"================================================================================
" Specify a directory for plugins
@pluskid
pluskid / .tmux.conf
Last active May 23, 2021 22:00
tmux configuration
set-option -g prefix C-l
bind-key Space last-window
# Avoid Esc key delay when using VIM
set -sg escape-time 0
set-option -g history-limit 1000000
# See here for instructions to install tpm