Skip to content

Instantly share code, notes, and snippets.

Andre Miranda andreldm

Block or report user

Report or block andreldm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
andreldm /
Last active Aug 29, 2015
Mapsforge write standalone sample
public class LatLong {
private double latitude;
private double longitude;
public LatLong() {
public LatLong(double latitude, double longitude) {
andreldm / test.cpp
Created Dec 27, 2014
FLTK callback with classes
View test.cpp
g++ test.cpp -o test -std=gnu++11 -lfltk -lfltk_images -lole32 -luuid -lcomctl32 -lwsock32 -lgdi32 -lcomdlg32
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Button.H>
andreldm /
Created Mar 6, 2015
AUR Atom Package Updater
if [ "$1" = "clean" ]; then
find . \
! -name \
! -name atom-python.patch \
! -name PKGBUILD \
-type f -delete
find . ! -name . -type d -exec rm -r {} +
exit 0
andreldm / doc2html.ps1
Created Mar 6, 2015
Script to convert doc[x] to html
View doc2html.ps1
# Run before: [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Interop.Word")
# Usage: .\doc2html.ps1 -docpath "C:\full\path\to\docs\folder" -htmlpath "C:\full\path\output\folder"
param([string]$docpath,[string]$htmlpath = $docpath);
$srcfiles = Get-ChildItem $docPath -include *.doc,*.docx -recurse
$saveFormat = [Enum]::Parse([Microsoft.Office.Interop.Word.WdSaveFormat], "wdFormatFilteredHTML");
$word = new-object -comobject word.application
$word.Visible = $False
andreldm / test.html
Last active Sep 24, 2015
Small test for encoding problems
View test.html
<!DOCTYPE html>
<meta charset="iso-8859-15">
<title>Charset problems</title>
<p>Run: browser-sync start --server --files="*.html"</p>
<p>Ärzte Serviços Ursprünge questão gemäß à sensível responsável für é bilhões dólares modernização segurança.</p>
andreldm / tray-icon.vala
Created Sep 24, 2016
Status icon on tray written in vala (Gtk3)
View tray-icon.vala
using Gtk;
public class Main {
class AppStatusIcon : Window {
private StatusIcon trayicon;
private Gtk.Menu menuSystem;
private AboutDialog aboutDialog;
public AppStatusIcon() {
/* Create tray icon */
import org.apache.catalina.LifecycleListener;
import org.apache.catalina.core.AprLifecycleListener;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.embedded.EmbeddedServletContainerFactory;
import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
* NOTE: You also need to install APR on your system, on Arch Linux the package is called `tomcat-native`.
andreldm / PKGBUILD
Created May 9, 2017
PKGBUILD for Medis
# Maintainer: John Doe <john.doe at gmail dot com>
pkgdesc='Medis is a beautiful, easy-to-use database management application for Redis.'
arch=('x86_64' 'i686')
andreldm /
Last active Jun 19, 2017
Build thunar-gtk3
git clone thunar-gtk3
cd thunar-gtk3
pkill -i thunar
View thunar-volman gtk3 patch
diff --git a/ b/
index 738e6b0..44012cd 100644
--- a/
+++ b/
@@ -92,15 +92,15 @@ XDT_I18N([@LINGUAS@])
dnl ***********************************
dnl *** Check for required packages ***
dnl ***********************************
-XDT_CHECK_PACKAGE([EXO], [exo-1], [0.10.0])
+XDT_CHECK_PACKAGE([EXO], [exo-2], [0.10.0])
You can’t perform that action at this time.