Skip to content

Instantly share code, notes, and snippets.

View dsaltares's full-sized avatar

David Saltares dsaltares

View GitHub Profile
@dsaltares
dsaltares / output.txt
Last active September 3, 2017 14:07
dothub error
C02RC5H0G8WP:dothub dsaltares$ make test
tox
GLOB sdist-make: /Users/dsaltares/github/dothub/setup.py
py27 inst-nodeps: /Users/dsaltares/github/dothub/.tox/dist/dothub-0.15.1.zip
py27 installed: betamax==0.8.0,click==6.6,coverage==4.3,deepdiff==2.5.3,dothub==0.15.1,Flask==0.12,funcsigs==1.0.2,gitdb2==2.0.0,github-token==0.1.0,GitPython==2.1.1,itsdangerous==0.24,Jinja2==2.9.4,MarkupSafe==0.23,mock==2.0.0,pbr==1.10.0,py==1.4.32,pytest==3.0.5,PyYAML==3.12,requests==2.12.4,sealedmock==0.3.0,six==1.10.0,smmap2==2.0.1,Werkzeug==0.11.15
py27 runtests: PYTHONHASHSEED='3216646903'
py27 runtests: commands[0] | py.test tests -vvvv
===================================================================================== test session starts ======================================================================================
platform darwin -- Python 2.7.10, pytest-3.0.5, py-1.4.32, pluggy-0.4.0 -- /Users/dsaltares/github/dothub/.tox/py27/bin/python
cachedir: .cache
@dsaltares
dsaltares / ListenerSet.h
Last active August 29, 2015 14:00
Utility class to handle a set of listeners and their callbacks using variadic templates
#ifndef __LISTENERSET_H__
#define __LISTENERSET_H__
#include <set>
/*
Usage:
class IInputListener
{
@dsaltares
dsaltares / smartenums.h
Last active December 15, 2022 06:02
Smart enums using high order macros in C++
#ifndef __SMARTENUM_H__
#define __SMARTENUM_H__
#include <cstring>
#define SMARTENUM_VALUE(typeName, value) e##typeName##_##value,
#define SMARTENUM_STRING(typeName, value) #value,
#define SMARTENUM_DEFINE_ENUM(typeName, values) enum typeName { values(SMARTENUM_VALUE) e##typeName##_Count, };