Skip to content

Instantly share code, notes, and snippets.

View elliotwoods's full-sized avatar

Elliot Woods elliotwoods

View GitHub Profile
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 */;
#include "ofApp.h"
using namespace ofxAssets;
//--------------------------------------------------------------
void ofApp::setup2(){
ofSetWindowTitle("Digital Emulsion Toolkit v0.1");
ofSetCircleResolution(120);
splashScreen.init("splashScreen.png");
@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;
https://link.getsync.com/?f=Music&sz=0&s=JKAQO4UBUJ7XISSHO2DX5LUQULUPOYDO&i=CRJL7MYV4CXGLNHAL7P2JKKXUWLETPD5K&p=CCSPRMMA75O6XVNFEZJVOS3A4FDD2HVN&e=1412072628
#include "Scene.h"
const ofVec3f roomMin(0.0f, 0.0f, 0.0f);
const ofVec3f roomMax(11.0f, 5.0f, 7.5f);
const ofVec3f roomScale = roomMax - roomMin;
const ofVec3f roomCenter = (roomMin + roomMax) / 2.0f;
//----------
Scene::Scene() {
this->grid = false;
There was an error during the execution of this program.
The application might become unstable and even useless.
It's recommended that you save your work and close this application.
The composition remains unchanged. The changes were rejected because of the following error(s): The composition produced multiple composition errors, with 4 root causes. The root causes are provided below. Review the CompositionException.Errors property for more detailed information.
1) More than one export was found that matches the constraint:
ContractName VVVV.PluginInterfaces.V2.IStartableRegistry
RequiredTypeIdentity VVVV.PluginInterfaces.V2.IStartableRegistry
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using SlimDX;
using SlimDX.Direct3D11;
using VVVV.PluginInterfaces.V1;
@elliotwoods
elliotwoods / gist:83767a5bc9db3b2c51be
Created August 12, 2014 10:56
old dds implementation
void MainLoop_OnPresent(object sender, EventArgs e)
{
if (FInWrite[0] && FInstance.Ready)
{
try
{
var data = FInstance.ReadBack(FInStorageFormat[0]);
if (data == null || data.Length < 16)
{
throw (new Exception("No data available"));
@elliotwoods
elliotwoods / ofApp.cpp
Last active August 29, 2015 14:04
handProject
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
cam.setFixUpwards(false);
cam.setCursorDraw(true);
//cam.setPosition(+100, 800, -100);
cam.rotate(90, +1, 0, 0);
@elliotwoods
elliotwoods / gist:c5986f04c75b4962d73e
Created July 21, 2014 17:00
results of matrix multiplication in openFrameworks
cout << ((ofMatrix4x4::newTranslationMatrix(1.0f, 0.0f, 0.0f) * ofMatrix4x4::newScaleMatrix(0.0f, 0.0f, 0.0f)) * ofVec3f(1.0f, 0.0f, 0.0f)) << endl;
//0, 0, 0
cout << ((ofMatrix4x4::newScaleMatrix(0.0f, 0.0f, 0.0f) * ofMatrix4x4::newTranslationMatrix(1.0f, 0.0f, 0.0f)) * ofVec3f(1.0f, 0.0f, 0.0f)) << endl;
//0, 0, 0
cout << ((ofMatrix4x4::newTranslationMatrix(1.0f, 0.0f, 0.0f) * ofMatrix4x4::newScaleMatrix(0.0f, 0.0f, 0.0f)) * ofVec4f(1.0f, 0.0f, 0.0f, 1.0f)) << endl;
//0, 0, 0, 1
cout << ((ofMatrix4x4::newScaleMatrix(0.0f, 0.0f, 0.0f) * ofMatrix4x4::newTranslationMatrix(1.0f, 0.0f, 0.0f)) * ofVec4f(1.0f, 0.0f, 0.0f, 1.0f)) << endl;