Skip to content

Instantly share code, notes, and snippets.

@tnaia
tnaia / .emacs
Created May 9, 2022 20:23 — forked from btskinner/.emacs
My .emacs file
;; -----------------------------------------------------------------------------
;;
;; [ FILE ] Emacs customization file
;; [ NAME ] .emacs
;; [ PATH ] ~/.emacs
;; [ AUTH ] Benjamin Skinner @btskinner
;; [ INIT ] 2 August 2017
;; [ REVN ] 22 May 2021
;;
;; -----------------------------------------------------------------------------
@tnaia
tnaia / ocr
Created March 25, 2022 15:17 — forked from QuentinN42/ocr
Automatic ocr with tesseract & flameshot
#!/usr/bin/env bash
TMPDIR=$(mktemp -d -t ocr-XXXXXXXXXX)
trap "rm -rf $TMPDIR" EXIT
cd "$TMPDIR"
flameshot gui -r > img.png
tesseract img.png text
cat text.txt | xsel --clipboard --input
@tnaia
tnaia / retro.py
Created May 9, 2018 20:37 — forked from benwebber/retro.py
An 8-bit avatar generator.
#!/usr/bin/env python
"""
An 8-bit avatar generator.
"""
from __future__ import division
import argparse
import hashlib
@tnaia
tnaia / sample-markdown
Last active December 19, 2015 00:58
One test of Markdwn
# About
Markdown is a project of John Gruber. In [his][1] page you will
find more about it.
With markdown you can _highlight_, in **many** different ways.
- lists
- are
- also
#! usr/bin/python3
# Dando o troco
# Criado sex 5 abril 2013
#
# Dojo PoliGNU
#
# ,= ,-_-. =.
# ((_/)o o(\_))
# `-'(. .)`-'

Sobre

Brainstorm de conteúdos para o curso de LaTeX. Não há nenhuma ordem particular entre os tópicos em cada seção.

Papo

Mostrar

@tnaia
tnaia / experimento-rede-1.markdown
Last active August 29, 2015 14:25
Uma brincadeira com a sintaxe de programação letrada e markdown

1001 primos

Este texto é um programa letrado (PL) usando C e markdown.

Ele é também um teste de sintaxe (e não uma prova de conceito de PL).

Vamos imprimir os 1001 menores números primos.

Nota. A programação letrada é um conceito de Knuth.

@tnaia
tnaia / Makefile
Created June 23, 2014 07:53
Bash script to produce two different latex tables from the same cvs (using awk).
texto.pdf: texto.tex tabela-tudo.tex
pdflatex texto.tex
pdflatex texto.tex
tabela-tudo.tex: campos.csv
./gera-tabelas.sh
@tnaia
tnaia / monta-tabela-de-requisitos.tex
Last active August 29, 2015 14:02
Deferred printing. Montando uma tabela aos poucos, durante o documento.
\documentclass{article}
% Input and output encoding
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Contador
\newcounter{indice} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%