Skip to content

Instantly share code, notes, and snippets.

View jmatute's full-sized avatar

Jose A. Matute jmatute

  • Münster, Germany
View GitHub Profile
#!/bin/bash
die () {
echo >&2 "$@"
exit 1
}
[ "$#" -eq 3 ] || die "3 argument required, $# provided";
N=$1
PROCESS=$2
@jmatute
jmatute / NumToTextEs.py
Created November 27, 2012 23:10
Convert number to text in spanish / Conversion de numeros a texto en español
def number_to_text_es(number):
if number == 0:
return "cero"
if number >= 10 ** 10:
return "No se pudo hacer la conversion"
exp = 9
result = ""
exponent = {"3": " mil ", "6": " millon", "9": " mil millones "}
@jmatute
jmatute / ejemplo.tex
Created May 7, 2012 11:06
LaTeX para reporte de graduacion
\documentclass{inf-unitec}
\tipo{practica}
\titulo{titulo de proyecto}
\nombre{nombre}
\cuenta{100100}
\fecha{12}{Diciembre}{2012}
\begin{document}
@jmatute
jmatute / Maximum.s
Created December 29, 2010 03:19
Find the maximum of three lists
#PURPOSE:Convert the maximum program given in the Section called Finding a Maximum
#Value in Chapter 3 so that it is a function which takes a pointer to several values
#and returns their maximum. Write a program that calls maximum with 3
#different lists, and returns the result of the maximum of the three lists as the program’s exit status
# code
# data_list_one:first list data_list_two:second list data_list_three:third list
.section .data