Skip to content

Instantly share code, notes, and snippets.

@akafael
akafael / lualatex-aux.tex
Last active December 21, 2015 09:09
Conjunto de Macros usando o Lua e Latex para montar tabelas e figuras
% use lualatex to compile
%% \luaTable{'numberOfColumns'}{'dataFile.dat'}{'legend'}
%% {'First Line of table (title)'}
\usepackage{luacode} %% Package to use the enviroment luacode
\begin{luacode}
numC = 3
@akafael
akafael / Makefile
Last active October 28, 2019 01:29
Makefile to use with Latex or Lualatex
##
# Makefile for Latex
# @author Rafael Lima
# @version 1.33
##
# Compiler Options
CC = pdflatex
CCFLAGS = --enable-write18
@akafael
akafael / Makefile
Created February 12, 2014 01:18
Looping and text file editing with makefile
##
# This a test for looping and edit files by makefile,
# it copy some program in diferents folders and run
# it with a litle diference between some text file
#
# @author: Rafael Lima
# @version: 0.2
##
# Number of experiments to create
@akafael
akafael / Makefile
Last active February 11, 2016 12:02
Makefile to combine LaTeX and Python using PythonTeX
##
# Makefile for Latex + Pythontex
# Pythontex Reference: https://github.com/gpoore/pythontex
# @author Rafael Lima
##
# Compiler Options
TEX = pdflatex
TEXFLAGS = --enable-write18 --shell-escape
@akafael
akafael / Terminator.md
Last active March 28, 2016 15:28
Tricks about terminator

Things About Terminator

Grouping

You can send the same input for multiple terminal at the same time by put then in the same group

Layout - Manual Set

Its possible to edit the layout file at ~/.config/terminator/config to set custom sizes for the windows, change names or add startup commads.

Layout

You can create a new layout by

@akafael
akafael / LaTeX_InserindoPDF.tex
Last active February 2, 2018 00:22
Coleção de pequenos truques em LaTeX que vou aprendendo.
% Exemplo Extraido do site
% http://latexbr.blogspot.com.br/2012/09/inserindo-paginas-pdf-em-documento-latex.html
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[brazil]{babel}
\usepackage{pdfpages} % Pacote para inserir um PDF dentro do LaTeX
\title{Inserindo páginas PDF em documento \LaTeX}
($Lathe)
($Millimeters)
($AddRegPart 2)
(test1)
(Pre Setting)
G40
G18 (XZ Plane)
G21 (Milimeters)
F540 S900 T8 M6 M03 ( Select Tool )
@akafael
akafael / linksOnLinux.md
Created December 3, 2016 16:53
[Tutorial] Create a link on Linux

How to create a link on Linux

1. Create a file with extention .desktop whith the following content

$ gedit myProgram.desktop

Content:

@akafael
akafael / pdf_tools.md
Created April 3, 2017 12:38
PDF Tools on Linux

PDF Tools on Linux

Extract Images from PDF file

using pdfimages [1]

$ pdfimages -j myDocument.pdf /my/outputfile/
@akafael
akafael / mipsInstructionCounter.sh
Created June 21, 2017 11:43
Contador de Instruções para estudo de Complexidade de Algoritmo implementado no Mars Mips
#!/bin/bash
MARS_MIPS="/opt/mars_mips/Mars45_Custom4.jar"
INDEX=0;
MAX_INDEX=19;
PROGRAM='primeNumbers.s'
OUT="Index,IC"