Skip to content

Instantly share code, notes, and snippets.

@andreldm
andreldm / update.sh
Created March 6, 2015 02:17
AUR Atom Package Updater
#!/bin/bash
if [ "$1" = "clean" ]; then
find . \
! -name update.sh \
! -name atom-python.patch \
! -name PKGBUILD \
-type f -delete
find . ! -name . -type d -exec rm -r {} +
exit 0
@andreldm
andreldm / test.cpp
Created December 27, 2014 15:52
FLTK callback with classes
/*
Compiling
Windows:
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
andreldm / LatLong.java
Last active August 29, 2015 14:10
Mapsforge write standalone sample
public class LatLong {
private double latitude;
private double longitude;
public LatLong() {
super();
}
public LatLong(double latitude, double longitude) {
super();