Skip to content

Instantly share code, notes, and snippets.

@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 / 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 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

($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"
@akafael
akafael / hideButton.html
Created August 6, 2017 23:09
Tougle Hide Button for ipython code cells
<!-->
Hide Button for code
Put as part of a markdown cell
</!-->
<script>
function code_toggle() {
if (code_shown){
$('div.input').hide('500');
$('#toggleButton').val('Show Code')
@akafael
akafael / playDigimon.py
Created October 12, 2017 13:17
[Digimon Word 3 - PS1] Farming XP Script
#!/bin/python
##
# Digimon Word 3 - Farming XP Script
# @version 1.0 - Open Loop Movement
##
import time
import pyautogui