Skip to content

Instantly share code, notes, and snippets.

View phoenixperry's full-sized avatar

Phoenix Perry phoenixperry

View GitHub Profile
#the goal of this app is to get the user to put in a power of two under 512 and then count up in powers of two until you
#get to 512, outputting the results along the way.
import math
def powersOfTwo(x):
isAPowerOfTwo = not(x == 0) and not(x & (x - 1)); #test to see if you have a power of two
#the way this works is
#step 1 make sure we've not got 0
#step 2 and make sure that you've got a legit power of 2. This is a bitwise AND operator
import processing.serial.*;
import netP5.*;
import oscP5.*;
import processing.net.*;
OscP5 oscP5;
int receiveAtPort;
int sendToPort;
using UnityEngine;
using System.Collections;
public class Tester : MonoBehaviour {
// Use this for initialization
void Start () {
}
#include "ofApp.h"
ofPoint center_p;
ofPoint p;
ofPolyline hexLine;
//ofMesh hexMesh;
vector<ofPoint> points;
ofColor hexColor = *new ofColor(0,200,0);
//--------------------------------------------------------------
void ofApp::setup(){
ofBackground(0);
#define N_SENSORS 6
#define BLINK_INTERVAL 500
//#define HWSERIAL Serial1
#define SWSERIAL Serial
int btnP0 = A0;
int btnP1 = A1;
int btnP2 = A2;
int btnP3 = A3;
int btnP4 = A4;
window.onbeforeunload = function(e) {
serial.close;
};
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
public class FileWriting : MonoBehaviour {
// Use this for initialization
void Start () {
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System.IO;
public class FileWriting : MonoBehaviour {
// Use this for initialization
void Start () {
asdfasfasdfsf
Hey everyone,
I am Phoenix Perry. I am going to be leading the Code Liberation workshop this Monday night. Goldsmiths has pretty bad wifi, so I am going to ask that people download and install everything before coming. This is, without doubt, the hardest part of the entire workshop so have faith, persistence, and email me if you get stuck. I'll do my best to help. To get started, go get some comfort biscuits and a cup of tea and grab your laptop, phone, and the USB cable you use to charge your phone. This process is going to take around an hour and eat a chunk of your hard drive.
## Step 1 Download and install Unity 3D with the AR package, Vuforia
The biggest issue is you are going to download two separate large applications with the right options selected. The first is Unity3D. For our AR system, we are going to use an AR tool built into Unity called Vuforia. It's cross platform which is great news for game developers targeting iOS and Android. For an install walk through, complete just the "Installing Vuf