Skip to content

Instantly share code, notes, and snippets.

View wchargin's full-sized avatar

wchargin wchargin

View GitHub Profile
@wchargin
wchargin / lattice_paths_demo.tex
Created October 28, 2015 06:24
paths and polygons on a lattice (or in general, I guess)
\documentclass{article}
\usepackage{wcsetup} % github:wchargin/wclatex
\usepackage{tikz}
\begin{document}
\tikzset{
latticept/.style={
red,
@wchargin
wchargin / .xsession-errors
Created November 9, 2015 21:39
.xsession-errors relating to crash described in linuxmint/cinnamon#4800
/etc/mdm/Xsession: Beginning session setup...
localuser:wchargin being added to access control list
Script for none started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
@wchargin
wchargin / .xsession-errors
Created November 10, 2015 02:38
Another .xsession-errors log from a Cinnamon crash
/etc/mdm/Xsession: Beginning session setup...
localuser:wchargin being added to access control list
Script for none started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
@wchargin
wchargin / .xsession-errors
Created November 14, 2015 06:47
control log: no Cinnamon restart
/etc/mdm/Xsession: Beginning session setup...
localuser:wchargin being added to access control list
Script for none started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
Failed to connect to the VirtualBox kernel service
@wchargin
wchargin / .xsession-errors
Created December 2, 2015 18:56
Super clean log!
/etc/mdm/Xsession: Beginning session setup...
localuser:wchargin being added to access control list
Script for none started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
Script for none started at run_im.
Script for auto started at run_im.
Script for default started at run_im.
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-G77rsF
SSH_AUTH_SOCK=/run/user/1000/keyring-G77rsF/ssh
@wchargin
wchargin / tex.vim
Created December 27, 2015 19:20
adding math concealment bindings for TeX
" Excerpted from ~/.vim/after/ftplugin/tex.vim,
" which is sourced (executed) right after loading any TeX file
" (more precisely, any file with filetype=tex).
"
" These commands set up concealing for some math characters
" in addition to those defined throughout /usr/share/vim/vim74/syntax/tex.vim.
" See ':help conceal' for more information about concealment,
" and add 'set concealllevel=1' to your .vimrc to enable concealing.
"
" Test Plan:
package edge;
import java.awt.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;
public class Repeated {
public static void main(String[] args) throws Exception {
@wchargin
wchargin / ListsBenchmark.java
Created January 18, 2016 18:20
ArrayList vs. LinkedList
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.function.Supplier;
public class ListsBenchmark {
\documentclass{article}
\usepackage{tikz}
\usepackage[siunitx,americanvoltages]{circuitikz}
\usepackage{geometry}
\pagenumbering{gobble}
\begin{document}
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{automata,positioning}
\newcommand{\mtsym}{\sqcup}
\pagestyle{empty}
\begin{document}