Skip to content

Instantly share code, notes, and snippets.

#include <QObject>
#include <QDebug>
class FactoryBase
{
public:
virtual QObject* create() = 0;
};
QMap<QString, FactoryBase*> factoryMap;
@SunRain
SunRain / ccache_help
Created January 14, 2012 02:12 — forked from adumont/ccache_help
Use ccache to reduce build time
Install ccache:
In Arch:
$ sudo pacman -S ccache
Or Ubuntu:
$ sudo apt-get install ccache
@SunRain
SunRain / archlinux_android
Created January 14, 2012 02:03 — forked from adumont/archlinux_android
ArchLinux for building Android
pacman -Sy
pacman -S --needed python2 perl git gnupg flex bison gperf zip unzip sdl wxgtk squashfs-tools ncurses libpng
zlib libusb libusb-compat readline inetutils
pacman -S --needed schedtool
pacman -S --needed openjdk6
## for x86_64?
pacman -S --needed gcc-multilib gcc-libs-multilib binutils-multilib libtool-multilib lib32-libusb lib32-libusb-compat lib32-readline lib32-glibc lib32-zlib
Install yaourt (& package-query):