This file contains hidden or 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 drawSnowman() | |
{ | |
ofPushStyle(); | |
// Head | |
ofFill(); | |
ofSetColor(255,255,255); | |
ofCircle(50, 50, 25); | |
ofCircle(50, 90, 30); | |
ofCircle(50, 160, 50); |
This file contains hidden or 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 <iostream> | |
using namespace std; | |
int main () | |
{ | |
int foo; | |
cout << "sizeof(foo) = " << sizeof(foo) << endl; | |
} |
This file contains hidden or 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 <iostream> | |
using namespace std; | |
class Player { | |
public: | |
string name; | |
float xPos; | |
float yPos; | |
double timeAlive; | |
}; |
This file contains hidden or 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 <iostream> | |
using namespace std; | |
int foo; // static memory allocation | |
void f() | |
{ | |
int bar; // automatic memory allocation | |
cout << "&bar = " << &bar << endl; |
This file contains hidden or 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
// tostring.cpp | |
#include <iostream> | |
using namespace std; | |
class Rectangle { | |
public: | |
void init(float _x, float _y, float _width, float _height) { | |
x = _x; | |
y = _y; | |
width = _width; |
This file contains hidden or 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
// tostring2.cpp | |
#include <iostream> | |
using namespace std; | |
class Rectangle { | |
public: | |
void init(float _x, float _y, float _width, float _height) { | |
x = _x; | |
y = _y; | |
width = _width; |
This file contains hidden or 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 <iostream> | |
using namespace std; | |
int main () | |
{ | |
int foo[4]; | |
double bar[4]; | |
// Print out the memory addresses of all 4 elements of "foo" | |
for(int i=0; i<4; i++) |
This file contains hidden or 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
var Crawler = require("crawler").Crawler; // https://github.com/sylvinus/node-crawler | |
var S = require('string'); | |
var fs = require('fs'); | |
// A list of some patterns that will show up in webcam URLs | |
var patterns = ["jpg/image.jpg\?r=" | |
, "mjpg/video.mjpg" | |
, "record/current.jpg" | |
, "cgi-bin/faststream.jpg" | |
, "oneshotimage.jpg" |
This file contains hidden or 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
#0 0x98920952 in __pthread_kill () | |
#1 0x9758d167 in pthread_kill () | |
#2 0x9796f29c in abort () | |
#3 0x994496c9 in abort_message () | |
#4 0x9946a47d in default_terminate_handler() () | |
#5 0x99467c30 in std::__terminate(void (*)()) () | |
#6 0x9946764b in __cxa_throw () | |
#7 0x000e0e89 in Poco::MutexImpl::lockImpl() () | |
#8 0x00572d7a in Poco::FastMutex::lock() [inlined] at /Users/sysadmin/Desktop/dayton14/of_v0.8.1_osx_release/libs/openFrameworksCompiled/project/osx/../../../../libs/poco/include/Poco/Mutex.h:259 | |
#9 0x00572d6f in ofThread::lock() at /Users/sysadmin/Desktop/dayton14/of_v0.8.1_osx_release/libs/openFrameworks/utils/ofThread.cpp:76 |
This file contains hidden or 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
#0 0xf208405a in 0xf208405a () | |
#1 0x0008c209 in ofxKinectContext::closeAll() at /Users/sysadmin/Desktop/dayton14/of_v0.8.1_osx_release/addons/ofxKinect/src/ofxKinect.cpp:922 | |
#2 0x0008c0aa in ~ofxKinectContext at /Users/sysadmin/Desktop/dayton14/of_v0.8.1_osx_release/addons/ofxKinect/src/ofxKinect.cpp:784 | |
#3 0x00086507 in ~ofxKinectContext at /Users/sysadmin/Desktop/dayton14/of_v0.8.1_osx_release/addons/ofxKinect/src/ofxKinect.cpp:783 | |
#4 0x9796ff0b in __cxa_finalize () | |
#5 0x97970236 in exit () | |
#6 0x00598200 in ofAppGLFWWindow::exit_cb(GLFWwindow*) at /Users/sysadmin/Desktop/dayton14/of_v0.8.1_osx_release/libs/openFrameworks/app/ofAppGLFWWindow.cpp:242 | |
#7 0x0035cb37 in _glfwInputWindowCloseRequest () | |
#8 0x00360a53 in -[GLFWApplicationDelegate applicationShouldTerminate:] () | |
#9 0x92015b72 in -[NSApplication _docController:shouldTerminate:] () |
OlderNewer