Skip to content

Instantly share code, notes, and snippets.

@antonl
antonl / simple.cpp
Last active June 22, 2018 14:49
Qt Threads and StateMachine
#include <QObject>
#include <QState>
#include <QStateMachine>
#include <QThread>
#include <QApplication>
#include <QDebug>
#include <QTimer>
// Worker Object
class Worker : public QStateMachine
#ifndef cbi
#define cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit))
#endif
#ifndef sbi
#define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit))
#endif
#include <avr/pgmspace.h>
unsigned char byte_n = 0; // byte count
@antonl
antonl / .vimrc
Created May 6, 2013 02:09
My vimrc file
"
" VIM Configuration
"
" Anton Loukianov
"
" Updated 2 Mar 2011
" Turn off compatible mode
set nocompatible
@antonl
antonl / configure.in.diff
Created July 8, 2012 07:02
Slightly edited wxWidgets upstream patch that removes Quicktime framework from x86_64 builds
Index: ./
===================================================================
--- configure (revision 70960)
+++ configure (revision 71086)
@@ -51726,5 +51726,65 @@
EXTRA_FRAMEWORKS="-framework IOKit -framework UIKit -framework CFNetwork -framework AudioToolbox -framework CoreFoundation -framework CoreGraphics -framework OpenGLES -framework Foundation -framework QuartzCore"
else
- EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -framework QuickTime"
+ EXTRA_FRAMEWORKS="-framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL"
+