Skip to content

Instantly share code, notes, and snippets.

View chrisma's full-sized avatar

Christoph Matthies chrisma

View GitHub Profile
@chrisma
chrisma / footnotes.tex
Created July 6, 2015 09:53
Declare LateX footnotes outside of text, not inline
\documentclass{article}
\usepackage{sepfootnotes}
\begin{document}
% \sepfootnotecontent needs to be defined before \sepfootnote
\sepfootnotecontent{a}{The footnotetext outside of the paragraph.}
A long sentence\sepfootnote{a} that I don't want broken by inline footnotes.
\end{document}
@chrisma
chrisma / enumerate_style.tex
Created July 6, 2015 21:45
Change enumerate Latex style
\documentclass{article}
\begin{document}
\begin{enumerate}
% Redefine first level style to R1:
% \labelenumii would be second level
\renewcommand{\labelenumi}{\textbf{R\arabic{enumi}}:}
\item Question 1
\item Question2
\end{enumerate}
@chrisma
chrisma / moderncv_left_aligned.tex
Last active January 1, 2022 14:15
LaTeX commands to add left aligned entries to moderncv template
\newcommand{\cvitemleft}[3][.25em]{%
\begin{tabular}{@{}p{\hintscolumnwidth}@{\hspace{\separatorcolumnwidth}}p{\maincolumnwidth}@{}}%
\hintstyle{#2} &{#3}%
\end{tabular}%
\par\addvspace{#1}
}
\newcommand{\cventryleft}[7][.25em]{%
\cvitemleft[#1]{#2}{%
{\bfseries#3}%
@chrisma
chrisma / helpers.tex
Created January 20, 2016 10:51
Commands I tend to use for new LaTeX documents
% Enquote stuff nicely
\newcommand{\enquote}[1]{``#1''}
% Superscripts in text
\newcommand{\up}[1]{\ensuremath{^{\textrm{\small#1}}}}
@chrisma
chrisma / easy_linebreak_in_table_cell.tex
Last active December 4, 2017 11:27
Easy forced line break in a table cell in Latex
\begin{table}
\centering
\caption{Your caption.}
\begin{tabular}{|p{2cm}|l|} \hline %Within a 'p' column \newline is defined
A long \newline text & Another text\\ \hline
\end{tabular}
\end{table}
@chrisma
chrisma / profile_script.sh
Created March 4, 2016 13:38
Profile Python script
# sorting options: https://docs.python.org/3/library/profile.html#pstats.Stats.sort_stats
FILE="file.py"; python -m cProfile -s cumulative $FILE > profile && less profile
@chrisma
chrisma / acceptance_rates.md
Last active June 22, 2016 12:22
Acceptance rates of computer science conferences (as reported by conferences)

CHASE 2016: 79% (26/33) "from the 33 submissions, 26 papers were accepted: 10 as Long papers, 12 as Short papers, and 4 as Notes"

[ICSE 2016 (SEET)][2]: 41% (26/64) "from the 64 submissions, only 26 (22 long and 4 short) papers were accepted"

[MSR 2016][3]: 32% (42/133) "We received 133 submissions (103 full and 30 short research and practice paper submissions); out of the 103 full paper submissions, we accepted 36 papers, and out of the 30 short paper submissions, we accepted 6 paper"

[ASONAM 2016][4]: 31% (99/316) "a total of 316 papers were submitted to the conference, of which 43 were accepted as full papers, 41 were accepted as short papers, and 15 were accepted as posters"

@chrisma
chrisma / cheat_sheet.sh
Created March 20, 2016 10:12
Terminal Cheat Sheet - commonly used commands
# Find and delete files
find . -type f -name "trash" -delete
@chrisma
chrisma / jekyll_install.sh
Last active July 25, 2016 13:20
Installing Jekyll for Github Pages
# https://github.com/rbenv/rbenv#basic-github-checkout
# requirements for installing / compiling ruby 2.3.0
sudo apt-get install -y libreadline-dev
sudo apt-get install -y libssl-dev
# Install ruby > 2.0 with rbenv
rbenv install 2.3.0 --verbose
sudo apt-get install ruby-dev
@chrisma
chrisma / keybase.md
Created June 15, 2016 15:32
Keybase Github proof

Keybase proof

I hereby claim:

  • I am chrisma on github.
  • I am chrisma (https://keybase.io/chrisma) on keybase.
  • I have a public key ASAsz-jG6Y-Tyakb1iZLKkkyPPubYYFa1rXf9khFFnTj4Ao

To claim this, I am signing this object: