This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Hola mundo */ | |
#include <stdio.h> | |
int main(int argc, char *argv[]) { | |
printf("Hola mundo\n"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3.0 | |
import sys, array, tempfile, heapq | |
assert array.array('i').itemsize == 4 | |
def intsfromfile(f): | |
while True: | |
a = array.array('i') | |
a.fromstring(f.read(4000)) | |
if not a: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# http://henrik.nyh.se/2008/12/git-dirty-prompt | |
# http://www.simplisticcomplexity.com/2008/03/13/show-your-git-branch-name-in-your-prompt/ | |
# username@Machine ~/dev/dir[master]$ # clean working directory | |
# username@Machine ~/dev/dir[master*]$ # dirty working directory | |
DIRTYCHAR="●" | |
function parse_git_dirty { | |
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit (working directory clean)" ]] && echo "$DIRTYCHAR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print "Hola world" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding=utf-8 | |
# Obtener el dígito verificador del RUT en Python. | |
# | |
# La función recibe el RUT como un entero, | |
# y entrega el dígito verificador como un entero. | |
# Si el resultado es 10, el RUT es "raya k". | |
from itertools import cycle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[12pt]{beamer} | |
\usepackage[spanish]{babel} | |
\usepackage[utf8]{inputenc} | |
\usepackage{xcolor} | |
\usepackage{listings} | |
\usepackage{palatino} | |
\usefonttheme{serif} | |
\lstloadlanguages{fortran} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
import sphinx.util.texescape as te | |
replacements = ur''' | |
✓ OK | |
✗ XX | |
⁰ \ensuremath{^{0}} | |
¹ \ensuremath{^{1}} | |
² \ensuremath{^{2}} | |
³ \ensuremath{^{3}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program ordenar_archivo | |
implicit none | |
integer :: a, b, st | |
open (unit=10, file='a.txt', action='read') | |
do | |
read (10, *, iostat=st), a | |
if (st /= 0) exit | |
! lo que viene a continuacion es la manera que vimos para agregar un |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[10pt]{article} | |
\usepackage{beamerarticle} | |
\usepackage[spanish]{babel} | |
\usepackage[utf8]{inputenc} | |
\usepackage{fullpage} | |
\usepackage{xcolor} | |
\usepackage{listings} | |
\usepackage{textcomp} | |
\usepackage{mathpazo} | |
\usepackage{courier} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEXFILES = $(wildcard *.tex) | |
PDFFILES = $(TEXFILES:.tex=.pdf) | |
all: pdf | |
pdf: $(PDFFILES) | |
%.pdf: %.tex | |
@rubber --pdf $< | |
clean: |
OlderNewer