Skip to content

Instantly share code, notes, and snippets.

@gaborpapp
gaborpapp / cinder-android-video.patch
Last active June 19, 2019 10:25
Cinder Android Movie playing from file
diff --git a/proj/android/libcinder_java/app/build.gradle b/proj/android/libcinder_java/app/build.gradle
index 8618c0e19..023d24131 100644
--- a/proj/android/libcinder_java/app/build.gradle
+++ b/proj/android/libcinder_java/app/build.gradle
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
android {
compileSdkVersion 21
- buildToolsVersion "21.1.2"
+ buildToolsVersion "28.0.3"

Keybase proof

I hereby claim:

  • I am gaborpapp on github.
  • I am gaborpapp (https://keybase.io/gaborpapp) on keybase.
  • I have a public key ASDoN81urceC-EOHCm5e5oN9fa899CPik3_yp1oexC3dAwo

To claim this, I am signing this object:

// Variation of "A trick to get looping curves with lerp and delay" tutorial
// by Étienne Jacob
// https://twitter.com/n_disorder
// https://necessarydisorder.wordpress.com/2018/03/31/a-trick-to-get-looping-curves-with-lerp-and-delay/
int numFrames = 100;
void setup()
{
size(800,800,P3D);
@gaborpapp
gaborpapp / checkout4evr.sh
Created June 15, 2017 21:02
Script to solve "Error downloading object... smudge filter lfs failed" git error
#!/bin/bash
ret=1
while [ $ret -ne 0 ]; do
git checkout -f HEAD
ret=$?
done
@gaborpapp
gaborpapp / cl-norgb.log
Created January 23, 2017 07:48
libfreenect2 logfiles for issue #783
[Info] [OpenCLDepthPacketProcessorImpl] devices:
[Info] [OpenCLDepthPacketProcessorImpl] 0: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz (CPU)[Intel]
[Info] [OpenCLDepthPacketProcessorImpl] 1: Iris Pro (GPU)[Intel]
[Info] [OpenCLDepthPacketProcessorImpl] 2: GeForce GT 750M (GPU)[NVIDIA]
[Info] [OpenCLDepthPacketProcessorImpl] selected device: GeForce GT 750M (GPU)[NVIDIA]
[Info] [OpenCLDepthPacketProcessorImpl] building OpenCL program...
[Info] [OpenCLDepthPacketProcessorImpl] OpenCL program built successfully
[Info] [Freenect2Impl] enumerating devices...
[Info] [Freenect2Impl] 7 usb devices connected
[Info] [Freenect2Impl] found valid Kinect v2 @20:17 with serial ...
@gaborpapp
gaborpapp / chrome console.log
Last active December 4, 2016 13:17
lightness build errors
bundle.js?v=0:1 ChristmasXP💥❄️
🎅Oh Oh Oh!🎄
2.bundle.js:1 travel to : Experiments
vendors.js:150 THREE.WebGLRenderer 82
vendors.js:74 THREE.WebGLProgram: gl.getProgramInfoLog() WARNING: Output of vertex shader 'uvs' not read by fragment shader
rf @ vendors.js:74
2vendors.js:58 THREE.WebGLShader: Shader couldn't compile.se @ vendors.js:58
vendors.js:74 THREE.WebGLProgram: shader error: 0 gl.VALIDATE_STATUS false gl.getProgramInfoLog rf @ vendors.js:74
vendors.js:137 WebGL: INVALID_OPERATION: useProgram: program not validt @ vendors.js:137
@gaborpapp
gaborpapp / AccentTestApp.cpp
Last active September 19, 2016 05:29
Cinder linux accent test
#include "cinder/Font.h"
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
using namespace ci;
using namespace ci::app;
using namespace std;
class AccentTestApp : public App
In file included from cinder_linux/blocks/Cinder-SdfText/src/cinder/gl/SdfText.cpp:59:
In file included from cinder_linux/include/boost/algorithm/string.hpp:19:
In file included from cinder_linux/include/boost/algorithm/string/trim.hpp:23:
In file included from cinder_linux/include/boost/algorithm/string/classification.hpp:18:
cinder_linux/include/boost/algorithm/string/detail/classification.hpp:45:73: error: implicit
instantiation of undefined template 'std::__1::ctype<char32_t>'
return std::use_facet< std::ctype<CharT> >(m_Locale).is( m_Type, Ch );
^
cinder_linux/include/boost/algorithm/string/detail/trim.hpp:53:27: note: in instantiation of
function template specialization 'boost::algorithm::detail::is_classifiedF::operator()<char32_t>' requested here
@gaborpapp
gaborpapp / TwoWinParams.cpp
Created May 8, 2016 16:56
TwoWinParams.cpp
#include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "cinder/params/Params.h"
using namespace ci;
using namespace ci::app;
using namespace std;
class TwoWinParams : public App
@gaborpapp
gaborpapp / CMakelists.txt
Created March 29, 2016 07:54
ContextSharingTestApp
# ContextSharingTestApp
cmake_minimum_required( VERSION 2.8 FATAL_ERROR )
set( CMAKE_VERBOSE_MAKEFILE on )
get_filename_component( CINDER_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../.." ABSOLUTE )
include( ${CINDER_DIR}/linux/cmake/Cinder.cmake )
project( ContextSharingTest )
get_filename_component( SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../src" ABSOLUTE )