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[14pt]{scrartcl} | |
%% Translate month names | |
\usepackage[spanish]{babel} | |
\usepackage[spanish]{translator} | |
\usepackage{tikz} | |
\usetikzlibrary{calendar} | |
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
function mkscala --argument proj org tld | |
set -q tld[1] | |
or set tld "com" | |
set -q org[1] | |
or set org "example" | |
echo "Creating a Scala project called" $proj | |
mkdir -p $proj/{project,src} | |
mkdir -p $proj/src/{main,test}/{java,scala,resources} | |
mkdir -p $proj/src/{main,test}/scala/$tld/$org/$proj |
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{scrartcl} | |
\usepackage{pdfpages} | |
\begin{document} | |
%% Edit the name of the PDF file | |
\includepdf[pages=-,booklet,landscape]{another.pdf} | |
\end{document} |
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
proc fib(a: cint): cint {.exportc, dynlib.} = | |
if a <= 2: | |
result = 1 | |
else: | |
result = fib(a - 1) + fib(a - 2) |
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
function mkscons --argument proj | |
mkdir -p $proj/include/core | |
mkdir -p $proj/src/core | |
mkdir -p $proj/tests/core | |
############################################################################### | |
# BUILD SCONSCRIPT | |
printf "\ | |
env = Environment(CPPPATH=['include']) | |
env.Library(target='$proj', source=Glob('src/core/*.c')) | |
env.Program(target='$proj', source=Glob('src/*.c'), |
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
#lang typed/racket/base | |
(require racket/cmdline | |
racket/string) | |
(: parse (-> String Integer Integer (Values String Integer))) | |
(define (parse line key-field-pos val-field-pos) | |
(let ([fields (string-split line "\t")]) | |
(values (list-ref fields key-field-pos) | |
(assert (string->number (list-ref fields val-field-pos)) |
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 python | |
""" | |
Script to retrieve events from a Google Calendar, check if any of them happens | |
tomorrow earlier than 11AM, and set a reminder in Reminders.app for today at | |
9PM | |
""" | |
import argparse | |
import datetime | |
import sys | |
import os |
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
#lang typed/racket/base | |
(require racket/future) | |
(require racket/performance-hint) | |
(require racket/cmdline) | |
(require (only-in racket/unsafe/ops | |
unsafe-car | |
unsafe-cdr)) | |
(require (rename-in racket/unsafe/ops | |
[unsafe-fx+ +] | |
[unsafe-fx- -] |
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 bash | |
pkg_name=$1 | |
pkg_root=$PWD/${pkg_name} | |
doc_root=${pkg_root}/docs/_build/html | |
hostname=`hostname` | |
year=`date '+%Y'` | |
version='0.1.0' |
NewerOlder