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 / ProjectFour.pm6
Created April 20, 2019 17:06
Project 4 for CS253 implemented in Raku Perl 6
unit module ProjectFour;
=begin pod
=TITLE ProjectFour
=SUBTITLE Find a route in map by backtracking using a Stack
The module C<ProjectFour> implements two classes (C<City> and C<RouteMap>)
to find a route, if one exists, from an origin city to a destination city,
given a particular map. In a map, a city B is adjacent to a city A if there's
an arrow pointing from A to B. For example, in N->Q we say that Q is adjacent
@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