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
void drawRepeatingTexture( const gl::Texture& tex, const Rectf& destRect, const Vec2f& textureBounds ) | |
{ | |
tex.enableAndBind(); | |
glEnableClientState( GL_VERTEX_ARRAY ); | |
glEnableClientState( GL_TEXTURE_COORD_ARRAY ); | |
GLfloat verts[8]; | |
GLfloat texCoords[8]; | |
glVertexPointer( 2, GL_FLOAT, 0, verts ); |
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 "cinder/app/AppBasic.h" | |
#include "cinder/gl/gl.h" | |
#include "cinder/params/Params.h" | |
#include "cinder/ImageIo.h" | |
#include "cinder/Utilities.h" | |
#include "cinder/Capture.h" | |
#include "cinder/gl/Texture.h" | |
#include "CinderOpenCV.h" |
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
[user] | |
name = David Wicks | |
email = youcanprobablyfindit@sansumbrella.com | |
[color] | |
branch = auto | |
status = auto | |
diff = auto | |
[alias] | |
st = status -sb | |
co = checkout |
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>Label</key> | |
<string>com.sansumbrella.scriptlauncher</string> | |
<key>Program</key> | |
<string>/usr/bin/python</string> | |
<key>ProgramArguments</key> | |
<array> |
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
/* | |
* PolygonShapes.cpp | |
* HereToThere | |
* | |
* Created by David Wicks on 2/23/11. | |
* Copyright 2011 David Wicks. All rights reserved. | |
* | |
*/ | |
#include "PolygonShapes.h" |
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
tell application "System Events" to shut down |
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
// loc = distance from center of distribution | |
float gaussian( float loc, float variance ) | |
{ | |
variance *= variance; | |
float a = loc * loc / ( 2.0 * variance ); | |
float b = exp( -a ); | |
float c = sqrt( PI * 2.0 * variance ); | |
return b / c; | |
} |
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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>now</title> | |
</head> | |
<body> | |
<h1>This page is titled now.</h1> | |
<p>This is some content in a paragraph.</p> |
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
/* | |
TI-83+ code to use calculator as an intervalometer | |
Adapted from a comment on: | |
http://www.instructables.com/id/Turn-a-TI-Graphing-Calculator-into-an-Intervalomet/ | |
*/ | |
Disp "START IN " | |
Disp "SECONDS" | |
Prompt A | |
A*238 -> S |
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 "cinder/app/AppCocoaTouch.h" | |
#include "cinder/Camera.h" | |
#include "cinder/gl/GlslProg.h" | |
using namespace ci; | |
using namespace ci::app; | |
using namespace std; | |
class ESTwoApp : public AppCocoaTouch { | |
public: |