Skip to content

Instantly share code, notes, and snippets.

View firmread's full-sized avatar

Reed Tothong firmread

View GitHub Profile
@firmread
firmread / simpleButton.cpp
Created April 14, 2014 12:08
simple circle and rectangle buttons for openFrameworks
void ofApp::setup(){
circleButton.set(100, 100);
radius = 50;
bCircleButton = false;
rectButton.set(200, 50, 100, 100);
bRectButton = false;
}
//--------------------------------------------------------------
Copyright (c) 2011 ZURB, http://www.zurb.com/
@firmread
firmread / count.cpp
Last active August 29, 2015 13:56
pseudocode for counting up every 3 minutes in OF
void setup(){
counter=0;
bCounted=true;
}
void update(){
//check time progress
if(ofGetElapsedTimef()- (counter*180) > 180)
bCounted = false;
}
@firmread
firmread / README.md
Created February 17, 2014 23:48 — forked from chrisjacob/README.md

Intro

Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout.

IMPORTANT

If you plan on switching between different branches (e.g. git checkout master-experiment then revert back with git checkout master) you will loose your child folder from this tutorial (because it's in your .gitignore and is not part of your master branch).

# project name folder then will be create in current directory
foundation new projectname
# http://rcrisman.net/article/10/installing-nodejs-on-hostmonster-bluehost-accounts
# 1. Create the directory to store the Node binaries
mkdir -m 755 node
# creates the folder used to store the Node.js binaries
# 2. Download & Compile Node.js
# I like to keep all my Git downloads organized and the following tutorial
# is going to follow my convention on folder structures.
cd downloads/git
@firmread
firmread / testApp.cpp
Created December 2, 2013 03:39
John Whitney tribute "sunflower" developed in OpenFrameworks
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
ofSetVerticalSync(true);
ofBackground(240);
ofSetCircleResolution(100);
ofEnableAlphaBlending();
ofSetFrameRate(30);