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 | |
extern "C" | |
{ | |
#include <lua.h> | |
#include <lauxlib.h> | |
#include <lualib.h> | |
} | |
#include <iostream> |
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/bash | |
d=${PWD} | |
sd=${d}/sources | |
bd=${d}/build | |
id=${d}/installed/ | |
PATH_ORIG=${PATH} | |
CC_ORIG=${CC} | |
CPP_ORIG=${CPP} |
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
MODULE Server | |
PERS tooldata myTool:=[TRUE,[[0,0,1],[1,0,0,0]],[1,[0,0,0.1],[1,0,0,0],0,0,0]]; | |
TASK PERS wobjdata myWobj:=[FALSE,TRUE,"",[[400,0,400],[1,0,0,0]],[[0,0,0],[1,0,0,0]]]; | |
!CONST robtarget myRobtarget:=[[0,0,0],[0.707107,0,0.707107,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]]; | |
VAR robtarget myRobtarget:=[[0,0,0],[1,0,0,0],[0,0,0,0],[9E9,9E9,9E9,9E9,9E9,9E9]]; | |
VAR socketdev server_socket; | |
VAR socketdev client_socket; | |
PROC main() | |
! SocketCreate server_socket; |
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
dding: 422.593750, 34.640625 | |
Adding: 422.593750, 36.640625 | |
Adding: 422.593750, 41.863281 | |
Adding: 422.593750, 49.175781 | |
Adding: 422.593750, 66.929688 | |
Adding: 422.593750, 75.285156 | |
Adding: 422.593750, 84.687500 | |
Adding: 422.593750, 93.042969 | |
Adding: 422.593750, 100.355469 | |
Adding: 422.593750, 110.101562 |
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 "Encoding.h" | |
/* ------------------------------------------------------------------- */ | |
static void output_callback(void* outputCallbackRefCon, | |
void* sourceFrameRefCon, | |
OSStatus status, | |
VTEncodeInfoFlags infoFlags, | |
CMSampleBufferRef sampleBuffer); | |
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.11) | |
set(bd ${CMAKE_CURRENT_LIST_DIR}) | |
set(id ${bd}) | |
include_directories(${id}) | |
add_executable(test_thread test_thread.cpp) | |
if (WIN32) |
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/bash | |
# ----------------------------------------------------------------------- # | |
# I N F O | |
# ----------------------------------------------------------------------- # | |
# | |
# | |
# ********************************************************************** * | |
# | |
# Get the latest version of this file from: |
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
/* | |
See https://gist.github.com/roxlu/6152fccfdd0446533e1b for the latest version. | |
Author: roxlu | |
Twitter: http://www.twitter.com/roxlu | |
*/ | |
/* ------------------------------------------------------------------------*/ |
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 <gfx/AsyncUpload.h> | |
namespace gfx { | |
AsyncUpload::AsyncUpload() | |
:width(0) | |
,height(0) | |
,dx(0) | |
,channels(0) | |
,n(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
/* | |
test_fex_load_image | |
------------------- | |
Plain test which loads + reloads a couple of images and reallocating the | |
previously allocated buffer when needed. Just a tiny test to speed up | |
the image loading process. | |
*/ |