Skip to content

Instantly share code, notes, and snippets.

View anderflash's full-sized avatar

Anderson Tavares anderflash

View GitHub Profile
@anderflash
anderflash / fig-multicol.tex
Created December 12, 2018 13:30
Figure in the middle of a multicol text
\documentclass[11pt,a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[english]{babel}
\usepackage{blindtext,calc,multicol,wrapfig}
\begin{document}
\begin{multicols}{2}
\blindtext
\begin{wrapfigure}[6]{r}[.5\width+.5\columnsep]{6cm}
@anderflash
anderflash / toc_list_of_something.tex
Created March 3, 2017 15:17
Create a correct TOC entry to <List of something...>
\cleardoublepage% or \clearpage under the oneside option
\phantomsection% Mark a hyperref link location
\addcontentsline{toc}{chapter}{\listtablename}% Add contents entry for List of Tables
\listoftables% Start List of Tables
@anderflash
anderflash / stack_pgfplot.tex
Created February 22, 2017 16:46
Stack PGFPlots Vertically
\documentclass{article}
\usepackage{pgfplots}
\usetikzlibrary{pgfplots.groupplots}
\begin{document}
\begin{tikzpicture}
\begin{groupplot}[
group style={
group name=my plots,
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.19.0/TweenMax.min.js"></script>
<title></title>
</head>
<body>
<svg width=500 height=500 id="svg">
<circle id="bigcircle" r=100 cx="250" cy="250" fill="none" stroke-width="2px" stroke="blue"/>
<circle id="smallcircle" r=10 cx="370" cy="250" fill="blue"/>
@anderflash
anderflash / grayscale.sh
Created July 18, 2016 18:08
Convert PDF to Grayscale
#!/bin/bash
gs \
-sOutputFile=$2 \
-sDEVICE=pdfwrite \
-sColorConversionStrategy=Gray \
-dProcessColorModel=/DeviceGray \
-dCompatibilityLevel=1.4 \
-dNOPAUSE \
-dBATCH \
@anderflash
anderflash / test_gtk_press_event.c
Created July 7, 2016 23:51
A Minimum Working Example (MWE) of failure of press event in GTK+3
#include <gtk/gtk.h>
static gboolean
press_event(GtkWidget* widget, GdkEvent* event, gpointer user_data){
printf("Hello\n");
return FALSE;
}
static gboolean
release_event(GtkWidget* widget, GdkEvent* event, gpointer user_data){
printf("World\n");
@anderflash
anderflash / Esperanto XmodMap
Created August 27, 2015 04:32
Ĉu vi volas tajpi ĈĜĤĴŜŬ literojn kun AltGr Klavo?
! Uzi AltGr kun ne internacia klavoj
! left/right windows-logo key
! in "windows" keyboards the postion of the key is annoying, is where AltGr
! usually resides, so go define it as AltGr
keycode 108 = Mode_switch
! ĉi tiu de http://bertilow.com/komputo/linukso.html
! Baza solvo por tajpado de Esperantaj supersignaj literoj estas uzado de la
! klavo AltGr. Por fari tion oni skribu en sia dosiero “.Xmodmap” la jenajn
! liniojn, kiuj modifas la aktualan klavararanĝon:
{
"metadata": {
"celltoolbar": "Slideshow",
"name": "",
"signature": "sha256:830db6fa190ca822bd41e70bcb9db4ef7d9f41e1a4472924cd62912b4b1fb193"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
@anderflash
anderflash / Komputila Vidado
Created October 3, 2014 23:37
Komputila Vidado
Komputila Vidado
===================
Mi estas Anderson kaj mi instruos vin pri **Komputila Vidado**, kiu estas la dilvolvado de programaroj por lasi la komputiloj kompreni ĉiujn kiujn ĝi vidas, pere de kamerao. Vidu ekzemplon
![](http://static.squarespace.com/static/53469597e4b0b2e29e34152b/t/53471a48e4b0b51fbb0b690b/1397168775834/crowd_tracking_Rodriguez.gif)
En tiu ekzemplo, la komputilo detektas la kapojn de la personoj kaj sekvas ilin. Do, ĝi povas poste identigi ilin.
Alia ekzemplo estas detekti numeroj de aŭtomobila plato.
![](http://www.visionatics.com.tw/images/low-height.png)
Kiom da aŭtomobiloj estas en tio loko?
![](http://countingsoftware.biz/images/slide05.jpg)
@anderflash
anderflash / Komputila Vidado
Created October 3, 2014 23:35
Komputila Vidado
<h1 id="komputila-vidado">Komputila Vidado</h1>
<p>Mi estas Anderson kaj mi instruos vin pri <strong>Komputila Vidado</strong>, kiu estas la dilvolvado de programaroj por lasi la komputiloj kompreni ĉiujn kiujn ĝi vidas, pere de kamerao. Vidu ekzemplon <br>
<img src="http://static.squarespace.com/static/53469597e4b0b2e29e34152b/t/53471a48e4b0b51fbb0b690b/1397168775834/crowd_tracking_Rodriguez.gif" alt="" title=""> <br>
En tiu ekzemplo, la komputilo detektas la kapojn de la personoj kaj sekvas ilin. Do, ĝi povas poste identigi ilin. <br>
Alia ekzemplo estas detekti numeroj de aŭtomobila plato. <br>
<img src="http://www.visionatics.com.tw/images/low-height.png" alt="" title=""></p>
<p>Kiom da aŭtomobiloj estas en tio loko? <br>
<img src="http://countingsoftware.biz/images/slide05.jpg" alt="" title=""></p>