Skip to content

Instantly share code, notes, and snippets.

🔒
busy

Dario Longobardi kashimAstro

🔒
busy
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
@kashimAstro
kashimAstro / README.md
Last active Mar 28, 2019
H3 / Mali GPU driver and openframeworks armv7 ES / ES2
View README.md

#A small guide to compile openFrameworks armv7 with driver OpenGL ES / ES2 sunxi for H3 / Mali GPU on ARMBIAN OS, compatible with orangepi and bananapi.

tested on: orangepi one banana pi M2

dependencies:

apt-get install libx11-dev libxext-dev xutils-dev libdrm-dev \ 
           x11proto-xf86dri-dev libxfixes-dev x11proto-dri2-dev xserver-xorg-dev \
           build-essential automake pkg-config libtool ca-certificates git cmake subversion
@kashimAstro
kashimAstro / main.cpp
Last active Feb 22, 2019
Simple Motion blur by (Keijiro Takahashi) rewritten in c++
View main.cpp
/*
Rewritten Code by Keijiro Takahashi
source:
https://github.com/keijiro/sketches2016/blob/master/Moblur/Moblur.pde
*/
#include "ofMain.h"
@kashimAstro
kashimAstro / i2cRaspberryGPIO.h
Last active Sep 24, 2018
i2c Multiple Byte read and write c++
View i2cRaspberryGPIO.h
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/i2c-dev.h>
class i2cReadWrite {
public:
int file_i2c;
unsigned char buffer[60];
int length=2;
View sampleAnalogRead.ino
int analog0 = A0;
int analog1 = A1;
void setup()
{
Serial.begin(9600);
}
void loop()
{
View gradlew_error.txt
/work/kashim/android/ndk/android-ndk-r15c/sources/cxx-stl/llvm-libc++/include/memory:2157: error: undefined reference to 'ofxAndroidVideoGrabber::ofxAndroidVideoGrabber()'
/work/kashim/android/ndk/android-ndk-r15c/sources/cxx-stl/llvm-libc++/include/memory:2044: error: undefined reference to 'ofxAndroidVideoGrabber::~ofxAndroidVideoGrabber()'
/media/disk-backup/openframeworks/of_v0.10.0RC4_android_release/libs/openFrameworks/gl/ofFbo.cpp:299: error: undefined reference to 'ofxAndroidEvents()'
/media/disk-backup/openframeworks/of_v0.10.0RC4_android_release/libs/openFrameworks/gl/ofFbo.cpp:336: error: undefined reference to 'ofxAndroidEvents()'
/media/disk-backup/openframeworks/of_v0.10.0RC4_android_release/libs/openFrameworks/gl/ofFbo.cpp:451: error: undefined reference to 'ofxAndroidEvents()'
/media/disk-backup/openframeworks/of_v0.10.0RC4_android_release/libs/openFrameworks/gl/ofFbo.cpp:357: error: undefined reference to 'ofxAndroidEvents()'
/work/kashim/android/ndk/android-ndk-r15c/sources/cxx-stl/llvm-libc
@kashimAstro
kashimAstro / addon_config.mk
Last active Apr 17, 2018
addon_config.mk for android in ofxDlib
View addon_config.mk
meta:
ADDON_NAME = ofxDlib
ADDON_DESCRIPTION = An openFrameworks wrapper for dlib.
ADDON_AUTHOR = Christopher Baker
ADDON_TAGS = "computer vision" "machine learning" "deep learning"
ADDON_URL = http://github.com/bakercp/ofxDlib
common:
ADDON_DEFINES =
View sig.cpp
#include <signal.h>
#include <iostream>
#include <unistd.h>
// kill -9 pid
// kill -15 pid
// kill pid
// Ctrl+c
using namespace std;
@kashimAstro
kashimAstro / adaptive_histogram_equalization.cpp
Created Feb 15, 2018
Adaptive histogram equalization opencv
View adaptive_histogram_equalization.cpp
#include <opencv2/core.hpp>
#include <vector>
int main(int argc, char** argv)
{
cv::Mat bgr_image = cv::imread("image.png");
cv::Mat lab_image;
cv::cvtColor(bgr_image, lab_image, CV_BGR2Lab);
// Estrazione L channel
View https.conf
# mkdir /etc/apache2/ssl
# openssl req -x509 -nodes -days 1095 -newkey rsa:2048 -out /etc/apache2/ssl/server.crt -keyout /etc/apache2/ssl/server.key
# a2enmod ssl
# ln -s /etc/apache2/sites-available/default-ssl.conf /etc/apache2/sites-enabled/000-default-ssl.conf
# vi /etc/apache2/sites-enabled/000-default-ssl.conf
change:
## SSLCertificateFile /etc/apache2/ssl/server.crt
## SSLCertificateKeyFile /etc/apache2/ssl/server.key
# /etc/init.d/apache2 restart
@kashimAstro
kashimAstro / ofLogAudio.h
Last active Jan 23, 2018
simple script audio synth for openframeworks
View ofLogAudio.h
class ofLogAudio : public ofThread{
public:
bool startSpeak = false;
string msg;
string speak;
void start(string _c="/usr/bin/espeak -v mb-it3")
{
speak = _c;
startThread(true);
You can’t perform that action at this time.