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 "testApp.h" | |
#pragma once | |
#include "ofMain.h" | |
#define NUM_STRIP 100 | |
#define LENGTH 40 | |
#define LOC_LENGTH 20 | |
#include "ofxDelaunay.h" | |
class testApp : public ofBaseApp{ | |
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
#pragma once | |
#include "ofMain.h" | |
#include "ofxiPhone.h" | |
#include "ofxiPhoneExtras.h" | |
#include "ofxBonjour.h" | |
using namespace ofxBonjour; | |
class testApp : public ofxiPhoneApp{ |
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 "testApp.h" | |
void addFace(vector<ofVec3f> &pos,vector<ofFloatColor> &color,vector<ofVec3f> &normal, vector<ofVec2f>&texcoord, ofVec3f a, ofVec3f b, ofVec3f c) { | |
ofVec3f _normal = ((b - a).cross(c - a)).normalize(); | |
ofFloatColor _color = ofFloatColor::fromHsb(ofRandom(0.5,0.9),1.0,1.0); | |
pos.push_back(a); | |
pos.push_back(b); | |
pos.push_back(c); | |
color.push_back(_color); |
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 "testApp.h" | |
#define foreach(t,v) for(typeof(v.begin()) p=v.begin(); p!=v.end(); p++) { typeof(*p) &t=*p; | |
#define endfor } | |
class Vertex : public ofVec3f { | |
public: | |
Vertex(float x, float y) : ofVec3f(x,y) {} | |
Vertex(ofVec3f v) { set(v); } | |
ofFloatColor color; | |
ofVec3f normal; |
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
#!/bin/bash | |
ls | while read -r FILE | |
do | |
mv -v "$FILE" `echo $FILE | tr ' ' '_' ` | |
done |
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
#!/bin/bash | |
for folder in $(ls ./20130629_Songs/) | |
do | |
# echo ./20130629_Songs/$folder | |
cd ./20130629_Songs/$folder | |
../../rename_space.sh | |
for i in $(ls *.m4a) | |
do | |
j=`echo $i | tr 'm4a' 'mp3' ` |
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
curl -O https://raw.github.com/aurora/identicon/master/identicon.sh && bash identicon.sh -H $(echo -n "your_name" | md5) -o icon.png -s 512 |
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
sudo gem install rails -v 3.2.14 | |
sudo gem install spree | |
rails _3.2.14_ new my_store | |
spree install my_store |
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
curl -O https://raw.github.com/aurora/identicon/master/identicon.sh && bash identicon.sh -H $(echo -n "Happy Birthday to Me" | md5) -o icon.png -s 512 |
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
sudo apt-get install -y git curl zlib1g-dev subversion | |
sudo apt-get update | |
sudo apt-get install -y openssl libreadline6-dev git-core zlib1g libssl-dev | |
sudo apt-get install -y libyaml-dev libsqlite3-dev sqlite3 | |
sudo apt-get install -y libxml2-dev libxslt-dev | |
sudo apt-get install -y autoconf automake libtool bison | |
curl -L get.rvm.io | bash -s stable --rails | |
source ~/.rvm/scripts/rvm | |
ruby -v | |
rails -v |