Skip to content

Instantly share code, notes, and snippets.

View elliotwoods's full-sized avatar

Elliot Woods elliotwoods

View GitHub Profile
@elliotwoods
elliotwoods / ofApp.cpp
Created October 2, 2014 14:54
findCirclesGrid
#include "ofApp.h"
using namespace ofxCv;
using namespace cv;
//--------------------------------------------------------------
void ofApp::setup(){
this->image.loadImage("/Users/elliot/Desktop/5x7.jpg");
this->paramThreshold = 100;
#include "ofApp.h"
using namespace ofxAssets;
//--------------------------------------------------------------
void ofApp::setup2(){
ofSetWindowTitle("Digital Emulsion Toolkit v0.1");
ofSetCircleResolution(120);
splashScreen.init("splashScreen.png");
CREATE DATABASE IF NOT EXISTS `link` /*!40100 DEFAULT CHARACTER SET latin1 */;
USE `link`;
-- MySQL dump 10.13 Distrib 5.6.17, for Win32 (x86)
--
-- Host: localhost Database: link
-- ------------------------------------------------------
-- Server version 5.6.20
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
@elliotwoods
elliotwoods / MyTestNode.cpp
Created April 20, 2015 13:31
Rulr workshop #1 : example node
#include "MyTestNode.h"
#include "ofxDigitalEmulsion/Item/Board.h"
using namespace ofxDigitalEmulsion;
//----------
MyTestNode::MyTestNode() {
OFXDIGITALEMULSION_NODE_INIT_LISTENER;
}
2>..\..\..\openFrameworks\3d\of3dPrimitives.cpp(149): warning C4267: 'argument': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\of3dPrimitives.cpp(153): warning C4267: 'argument': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\ofMesh.cpp(757): warning C4267: 'initializing': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\ofMesh.cpp(1049): warning C4267: 'argument': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\ofMesh.cpp(1064): warning C4267: 'argument': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\ofMesh.cpp(1071): warning C4267: 'argument': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\ofMesh.cpp(1084): warning C4267: 'argument': conversion from 'size_t' to 'ofIndexType', possible loss of data
2>..\..\..\openFrameworks\3d\ofMes
const int output = 13;
const int highDuration = 50;
const int lowDuration = 30;
void setup() {
pinMode(output, OUTPUT);
Serial.begin(9600);
}
void testApp::setup(){
ifstream file ( ofToDataPath("fcrun2.csv").c_str() );
int i=0;
string value[3];
ofstream out("out.raw", ios::binary | ios::out);
ofVec2f v;
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
glEnable(GL_DEPTH_TEST);
ifstream file ( ofToDataPath("fcrun2.csv").c_str() );
int i=0;
@elliotwoods
elliotwoods / gist:1329309
Created October 31, 2011 22:53
PHP script to auto generate video previews for video files from 5D
<?php
// run this script from command line e.g.
// php compress.php > videos.html
// I really DO NOT suggest you try and load this php url in your browser
$nVideos = 0;
//these 2 variables are used to render an absolute path
@elliotwoods
elliotwoods / gist:1358604
Created November 11, 2011 17:23
Threaded RS232
#region usings
using System;
using System.ComponentModel.Composition;
using System.IO.Ports;
using System.Threading;
using VVVV.PluginInterfaces.V1;
using VVVV.PluginInterfaces.V2;
using VVVV.Utils.VColor;
using VVVV.Utils.VMath;