This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <poly/Log.h> | |
#include <OpenCvBackgroundSubtraction.h> | |
namespace poly { | |
OpenCvBackgroundSubtraction::OpenCvBackgroundSubtraction() | |
:subtractor(NULL) | |
,width(0) | |
,height(0) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:start | |
call :focus "Title of Window" | |
timeout /t 10 /nobreak > NUL | |
goto start | |
::exit /b | |
:focus | |
setlocal EnableDelayedExpansion | |
if ["%~1"] equ [""] ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <poly/Log.h> | |
#include <RendezVousClient.h> | |
#include <RendezVousTypes.h> | |
namespace poly { | |
/* -------------------------------------------------------------- */ | |
RendezVousClientSettings::RendezVousClientSettings() | |
:rv_port(0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
project(microprofile) | |
include(ExternalProject) | |
set(bd ${CMAKE_CURRENT_LIST_DIR}) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | |
# SDL | |
ExternalProject_Add( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -x | |
if [ ! -d ${PWD}/h264 ] ; then | |
mkdir h264 | |
fi | |
if [ ! -d ${PWD}/r264 ] ; then | |
mkdir r264 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <poly/AudioConverterBrain.h> | |
#include <poly/AudioDataConverter.h> | |
namespace poly { | |
AudioConverterBrain::AudioConverterBrain() | |
:listener(NULL) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if 0 | |
/* takes ~0.038ms */ | |
for (size_t k = 0; k < convert_from.nchannels; ++k) { | |
std::vector<double>& prepared_data = channel_data[k]; | |
for (size_t i = 0; i < nframes; i++) { | |
prepared_data[i] = src_ptr[k + (i * convert_from.nchannels)]; | |
} | |
} | |
#else | |
/* takes 0.0025 ms*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8) | |
project(PluginTest) | |
add_library(Transportation STATIC Car.cpp SomeFunctions.c) | |
add_library(Plugin MODULE Plugin.cpp) | |
target_link_libraries(Plugin Transportation) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <poly/Log.h> | |
#include <TestFboChangeBuffer.h> | |
using namespace poly; | |
TestFboChangeBuffer::TestFboChangeBuffer() | |
:fbo(0) | |
,dx(0) | |
{ | |
tex[0] = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fun.cpp | |
// This is for Lua 5.2, for Lua 5.1, see https://gist.github.com/kizzx2/1594905 | |
#include <lua.hpp> | |
#include <iostream> | |
#include <sstream> | |
class Foo | |
{ |