Skip to content

Instantly share code, notes, and snippets.

View uzluisf's full-sized avatar
💼
On the hunt...

Luis Uceta uzluisf

💼
On the hunt...
View GitHub Profile
@uzluisf
uzluisf / mathy.tex
Created January 13, 2019 02:42
A simple LaTex template for Math homeworks.
% Resources:
% http://www-math.mit.edu/~psh/exam/examdoc.pdf
% https://www.math.uni-bielefeld.de/~rost/amslatex/doc/amsthdoc.pdf
\documentclass[addpoints,answers,12pt]{exam} % exam class with 12 point type
\usepackage[T1]{fontenc} % replace default font encoding (OT1)
\usepackage{tgschola} % font used in the Book of Proof
\usepackage{amsmath,amsthm,amssymb,amsfonts} % packages for mathematical typesetting
\usepackage{pdfpages} % include pdf pages with \includepdf{dir/of/page.pdf}
\usepackage[makeroom]{cancel} % display expressions as cancelled

Let's say I have the following module:

module Simple-Mod;

#| Calculate the nth fibonacci number.
multi fib( 0 ) { 1 }
multi fib( 1 ) { 1 }
multi fib( Int $n where * > 1 ) {
    fib($n - 2 ) + fib($n - 1);
@uzluisf
uzluisf / usefulpacman.md
Created June 29, 2017 15:45
A short list of pacman commands

Syncing

pacman -Sy          #sync the database

pacman -Syy         #sync the database even if it's up to date

Updating