Skip to content

Instantly share code, notes, and snippets.

Elliot Woods elliotwoods

View GitHub Profile
View gist:1305428
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;
View gist:1305465
#include "testApp.h"
void testApp::setup(){
ifstream file ( ofToDataPath("fcrun2.csv").c_str() );
int i=0;
elliotwoods / gist:1329309
Created Oct 31, 2011
PHP script to auto generate video previews for video files from 5D
View gist:1329309
// 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
View gist:1358604
#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;
View gist:1381800
Drop in replacement for S+H (Spreads)
But this node saves the current state in its own config pin
So when you reload the patch, S+H returns to the same state when you closed the patch.
This likely works a little different from the existing s+h node in edge cases, but in most situations it should be identical.
Also it's super simple
To use:
View gist:1381810
<!DOCTYPE PATCH SYSTEM "C:\vvvv\vvvv_45beta26 w.addons\bin\45beta26.dtd" >
<NODE componentmode="Hidden" id="0" nodename="S+H (Animation)" systemname="S+H (Animation)">
<BOUNDS height="270" left="3030" top="3180" type="Node" width="2280">
<PIN pinname="Input" visible="1">
<PIN pinname="Output" visible="1">
<PIN pinname="Set" visible="1">
elliotwoods / gist:1422240
Created Dec 2, 2011
Errorlog from msbuild on vvvv-sdk
View gist:1422240
Microsoft (R) Build Engine Version 4.0.30319.1
[Microsoft .NET Framework, Version 4.0.30319.239]
Copyright (C) Microsoft Corporation 2007. All rights reserved.
Build started 02/12/2011 08:51:09.
Project "c:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\src\vvvv45.csproj" on node 1 (Build;Zip target(s)).
Project "c:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\src\vvvv45.csproj" (1) is building "c:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\src\core\Hosting\Hosting.csproj" (2) on node 1 (default targets).
Project "c:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\src\core\Hosting\Hosting.csproj" (2) is building "c:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\src\core\PluginInterfaces\PluginInterfaces.csproj" (3) on node 1 (default targets).
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1200,9): warning : The referenced project '..\Core\Core.csproj' does not exist. [c:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\src\core\PluginInterfaces\PluginInterfaces.csproj]
View gist:1450499
* CorrelateMain.cpp
* MapTools Structured Light
* Created by Elliot Woods on 03/11/2010.
* Copyright 2010 Kimchi and Chips. All rights reserved.
#include "CorrelateMain.h"
View gist:1562852
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 produced a single composition error, with 4 root causes. The root causes are provided below. Review the CompositionException.Errors property for more detailed information.
1) Cannot compose part 'VVVV.Hosting.HDEHost' because a cycle exists in the dependencies between the exports being composed. To break this cycle, consider changing some imports from constructor to property injection.
Element: VVVV.Hosting.HDEHost --> VVVV.Hosting.HDEHost --> DirectoryCatalog (Path="C:\kimchiandchips\VVVV.Research\vvvv-sdk\vvvv45\lib\nodes\editors")
Resulting in: Cannot get export 'VVVV.Hosting.HDEHost.Container (ContractName="System.ComponentModel.Composition.Hosting.CompositionContainer")' from part 'VVVV.Hosting.HDEHost'.
elliotwoods / gist:2351343
Created Apr 10, 2012
Code::Blocks build errors
View gist:2351343
||Warning: .drectve `-defaultlib:LIBCMT ' unrecognized|
||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|
||Warning: .drectve `-defaultlib:LIBCMT ' unrecognized|
||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|
||Warning: .drectve `-defaultlib:LIBCMT ' unrecognized|
||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|
||Warning: .drectve `-defaultlib:LIBCMT ' unrecognized|
||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|
||Warning: .drectve `-defaultlib:LIBCMT ' unrecognized|
||Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized|
You can’t perform that action at this time.