Skip to content

Instantly share code, notes, and snippets.

View firmread's full-sized avatar

Reed Tothong firmread

View GitHub Profile
@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);
# 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
# project name folder then will be create in current directory
foundation new projectname
@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).

@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;
}
Copyright (c) 2011 ZURB, http://www.zurb.com/
@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;
}
//--------------------------------------------------------------
s valid, RSSI: 83, mode: WPA2
yyn yyn
yyn Brain Wrinkle
yyn Atsuyo et Akiko
yyn Drum Bunny
yyn 09FX02043875
// from https://github.com/mikewesthad/ExperimentalMedia/blob/master/people/mikewesthad/Week4/Arduino/MorseAdvanced/MorseAdvanced.ino
// Explanation of International Morse Code from: http://en.wikipedia.org/wiki/Morse_code
// Dot is basic unit of time
// Dash is three dits
// Space between dots and dashes within characters is one dot
// Space between letters is 3 dots
// Space between words is 7 dots
@firmread
firmread / brew-git-osx.md
Last active August 29, 2015 14:15 — forked from digitaljhelms/gist:2931522
homebrew git on os x

Building and installing Git from source on OS X Lion

This outline for building and installing Git has only been tested against Mac OS X 10.7.x (Lion). While these steps may work for previous versions of Mac OS X, I cannot confirm this. Furthermore, you're on your own, if you screw something up, it's not my fault.

If you have Xcode 4, you have Git!

Xcode 4 includes the Git binary at the application level so it's available to itself (located at /Applications/Xcode.app/Contents/Developer/usr/bin/git). Additionally, Xcode 4 includes a new "Downloads" preference pane to install optional components, one of which are the Command Line Tools (similar to the Dev Tools package that shipped with older versions of Xcode) and once installed, Git (and many other utilities, such as make) is installed at the system level (located at /usr/bin).

*Note: You don't have to install Xcode to use the Command Line Tools; it can be downloaded independently from the Apple Developer site (you need to login, but it's free