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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>AllowedTypes</key> | |
<array> | |
<string>public.c-plus-plus-source</string> | |
</array> | |
<key>DefaultCompletionName</key> | |
<string>File</string> |
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
dest = [] | |
locs = [] | |
def process(line): | |
global dest | |
inp_split = line.split(':') | |
dep = inp_split[0] | |
conn = inp_split[1] | |
dist = int(inp_split[2]) |
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
// ofApp.h | |
#include "Poco/DirectoryWatcher.h" | |
#include "Poco/Delegate.h" | |
Poco::DirectoryWatcher* watcher; | |
void onFileAdded(const Poco::DirectoryWatcher::DirectoryEvent& addEvent); | |
void onFileChanged(const Poco::DirectoryWatcher::DirectoryEvent& changeEvent); | |
// ofApp.cpp | |
watcher = new Poco::DirectoryWatcher(ofToDataPath("img")); |
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
diskutil list | |
diskutil unmountDisk /dev/disk3 | |
// snappy ubuntu core | |
sudo dd bs=1m if=~/Downloads/pi-snappy.img of=/dev/disk3 | |
// raspbian | |
sudo dd bs=1m if=~/Downloads/2015-01-31-raspbian.img of=/dev/disk3 | |
// retropie (assumes .img is in Downloads folder) |
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
Raspberry PI | |
Cubieboard2 | |
Intel NUC | |
ODROID-U3 | |
Beaglebone Black | |
CuBox | |
UDOO | |
Jetson TK1 | |
HummingBoard | |
Brix Pro |
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 "FlyCapture2.h" | |
using namespace FlyCapture2; | |
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
template <class ListenerClass> | |
void addEventListener(ListenerClass * listener){ | |
ofAddListener(onChangedEvent,listener,&ListenerClass::onSomething); | |
}; | |
template <class ListenerClass> | |
void removeEventListener(ListenerClass * listener){ | |
ofRemoveListener(onChangedEvent,listener,&ListenerClass::onSomething); | |
}; |
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
ofMesh ico = createIcosahedron(120); | |
ofMesh testApp::createIcosahedron(float size) { | |
ofMesh mesh; | |
GLdouble vertexB[][3]= { | |
{0, -0.525731, 0.850651}, // vertices[0] | |
{0.850651, 0, 0.525731}, // vertices[1] | |
{0.850651, 0, -0.525731}, // vertices[2] | |
{-0.850651, 0, -0.525731}, // vertices[3] |
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
deque<ofVec3f> mousePts; | |
void testApp::drawRibbonRainbow() { | |
mousePts.push_back(ofVec3f(ofGetMouseX(), ofGetMouseY(), 0)); | |
ofPolyline polyPoints; | |
for(int i = 0; i < mousePts.size(); i++) { | |
polyPoints.addVertex(mousePts[i]); | |
} |
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
function gitit { | |
git pull origin develop | |
git add -A | |
git commit -am "$1" | |
git push origin develop | |
} |
NewerOlder