Skip to content

Instantly share code, notes, and snippets.

@vittorioromeo
vittorioromeo / qtcreator_monokai.xml
Created May 11, 2016 20:05
monokai theme for qtcreator
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme version="1.0" name="veeMonokai (copy)">
<style name="Text" foreground="#e6e5e2" background="#1e201a"/>
<style name="Link" foreground="#66d9ef"/>
<style name="Selection" foreground="#e6e5e2" background="#49483e"/>
<style name="LineNumber" foreground="#a0a19c" background="#272822"/>
<style name="SearchResult" foreground="#ffffff" background="#2572b8"/>
<style name="SearchScope" foreground="#000000" background="#e2efff"/>
<style name="Parentheses" foreground="#ff0000" background="#515d6a"/>
<style name="CurrentLine" background="#3e3d32"/>
#include <thread>
#include <mutex>
#include <condition_variable>
// https://github.com/meganz/mingw-std-threads
#include "./mingw-std-threads/mingw.thread.h"
#include "./mingw-std-threads/mingw.mutex.h"
#include "./mingw-std-threads/mingw.condition_variable.h"
#define BOOST_THREAD_PROVIDES_FUTURE 1
@vittorioromeo
vittorioromeo / hello_triangle.cpp
Created October 10, 2015 11:07
SDL2 + OpenGL ES 2.0 - "Hello triangle" example that works both on X11 and Emscripten
#include <exception>
#include <functional>
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
dmenu-launch
libcurl-compat
lsx
menda-themes-dark
mint-x-icons
numix-frost-themes
numix-themes-archblue-git
numix-themes-git
oh-my-zsh-git
python-gnupg
@vittorioromeo
vittorioromeo / semaphore.ino
Created July 15, 2015 09:27
semaphore tests
class BaseBtn
{
private:
int pin;
public:
BaseBtn(int mPin) : pin(mPin)
{
pinMode(pin, INPUT);
}
#include <type_traits>
#include <tuple>
#include <iostream>
// Link: https://github.com/aeyakovenko/notes
//count arguments
//COUNT_ARGS :: ... -> Int
#define COUNT_ARGS(...) COUNT_ARGS_(,##__VA_ARGS__,6,5,4,3,2,1,0)
#define COUNT_ARGS_(z,a,b,c,d,e,f,cnt,...) cnt
@vittorioromeo
vittorioromeo / gist:8ef664c28863df8db147
Created January 27, 2015 12:03
GGJ2015 windows compile
g++ -std=c++1y -O3 -I"." -I"./include" .\include\GGJ2015\main.cpp -I"./extlibs/SSVStart/include" -I"C:\SFML\include" -I"./extlibs/SSVUtils/include" -L"C:\SFML\lib" -lsfml-system -lsfml-graphics -lsfml-audio -lsfml-window
// Copyright (c) 2013-2014 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
#ifndef SSVU_JSON_IO_READER
#define SSVU_JSON_IO_READER
namespace ssvu
{
namespace Json
// Copyright (c) 2013-2014 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
#ifndef SSVU_JSON_IO_READER
#define SSVU_JSON_IO_READER
namespace ssvu
{
namespace Json