Skip to content

Instantly share code, notes, and snippets.


Dario Longobardi kashimAstro

Block or report user

Report or block kashimAstro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ofxTFTTouchEventX11.cpp
#include "ofMain.h"
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "ofxTFTTouch.h"
Display *display;
Window root;
ofxTFTTouch touch;
int w,h;
kashimAstro / ofwpaconfig.cpp
Last active Nov 12, 2016
configure wpa_supplicant.conf
View ofwpaconfig.cpp
#include "ofMain.h"
#include "ofAppNoWindow.h"
#define WPA_PATH "/etc/wpa_supplicant/wpa_supplicant.conf"
class ofApp : public ofBaseApp
string essid;
string passwd;
kashimAstro / config.make
Created Nov 10, 2016
config.make openframeworks PhysX3.3 NVIDIA
View config.make
PHYSX = /path/PhysXSDK/
var = -I$(PHYSX)/Include
var += -L$(PHYSX)/Lib/linux64
var += -L$(PHYSX)/Bin/linux64
var += -L$(PHYSX)/Snippets/lib/linux64
var += -DPX_DEBUG
View canvas
body {
margin: 0px;
padding: 0px;
kashimAstro / CVShape.h
Last active Oct 21, 2016
Class Opencv shape detection for openframeworks
View CVShape.h
#include "ofMain.h"
#include "ofxCv.h"
using namespace ofxCv;
using namespace cv;
class CVShape{
Mat gray;
Mat bw;
kashimAstro /
Created Sep 16, 2016
Blender export .STL separate mesh fracture
import bpy
import os
path = bpy.path.abspath('/tecnici/dario/teststl/')
if not os.path.exists(path):
for object in bpy.context.selected_objects:
bpy.ops.object.select_all(action='DESELECT') = True
kashimAstro /
Created Jun 2, 2016
Raspberry server and client RTP with gstreamer
raspivid -t 999999 -w 800 -h 600 -fps 25 -hf -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host= port=5000
gst-launch-1.0 -v tcpclientsrc host= port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false
kashimAstro / HMC5883L.cpp
Last active Jun 3, 2016
ofxGPIO openframeworks example HMC5883L compass
View HMC5883L.cpp
#include "ofMain.h"
#include "ofAppNoWindow.h"
#include "ofxGPIO.h"
#include "ofxNetwork.h"
#define COMPASS 0x1e
class ofApp : public ofBaseApp{
I2CBus * busCompass;
kashimAstro / main.cpp
Created May 6, 2016
Menger sponge CPU ofMesh
View main.cpp
#include "ofMain.h"
class Menger : public ofBaseApp{
ofEasyCam cam;
ofMesh mesh;
void setup() {
mesh = sponge(10,10,10,500,3,2);
kashimAstro / IMUPosTracking.txt
Last active Mar 4, 2016
IMU positional tracking
View IMUPosTracking.txt
T = e' il tempo trascorso dall'ultimo calcolo della posizione
A = accelerazione singola asse IMU
S = vecchia velocita'
S1 = nuova velocita'
P = vecchia posizione
P1 = nuova posizione
S1 = S + A * T
P1 = P + S1 * T
You can’t perform that action at this time.