This file contains hidden or 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
| import bpy | |
| import os | |
| path = bpy.path.abspath('/tecnici/dario/teststl/') | |
| if not os.path.exists(path): | |
| os.makedirs(path) | |
| for object in bpy.context.selected_objects: | |
| bpy.ops.object.select_all(action='DESELECT') | |
| object.select = True |
This file contains hidden or 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 "ofMain.h" | |
| #include "ofxCv.h" | |
| using namespace ofxCv; | |
| using namespace cv; | |
| class CVShape{ | |
| public: | |
| Mat gray; | |
| Mat bw; |
This file contains hidden or 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
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| margin: 0px; | |
| padding: 0px; | |
| } | |
| </style> | |
| </head> |
This file contains hidden or 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
| PHYSX = /path/PhysXSDK/ | |
| var = -I$(PHYSX)/Include | |
| var += -L$(PHYSX)/Lib/linux64 | |
| var += -L$(PHYSX)/Bin/linux64 | |
| var += -L$(PHYSX)/Snippets/lib/linux64 | |
| var += -DPHYSX_PROFILE_SDK | |
| var += -DRENDER_SNIPPET | |
| var += -DPX_DEBUG | |
| var += -DPX_CHECKED |
This file contains hidden or 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 "ofMain.h" | |
| #include "ofAppNoWindow.h" | |
| #define WPA_PATH "/etc/wpa_supplicant/wpa_supplicant.conf" | |
| class ofApp : public ofBaseApp | |
| { | |
| public: | |
| string essid; | |
| string passwd; |
This file contains hidden or 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 "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; |
This file contains hidden or 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
| 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); |
This file contains hidden or 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
| /* | |
| Rewritten Code by Keijiro Takahashi | |
| source: | |
| https://github.com/keijiro/sketches2016/blob/master/Moblur/Moblur.pde | |
| */ | |
| #include "ofMain.h" |
This file contains hidden or 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 <iostream> | |
| #include "ofxGPIO.h" | |
| #define OLED 0x3C | |
| #define WIDTH_OLED 128 | |
| #define HEIGHT_OLED 64 | |
| int main(int argc, char *argv[]) | |
| { | |
| if(argc > 2) |
This file contains hidden or 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
| /* | |
| http://dlib.net/train_object_detector.cpp.html | |
| Usage: | |
| first step create positive train: | |
| ./bin/imglab_commandline positive/ "30,20,520,520" "person" | |
| second step create negative train in append positive train previously created: |