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
| In local project folder: | |
| git init | |
| git add . | |
| git commit -m "first" | |
| On the server: | |
| mkdir ~/repos/name-of-project.git | |
| cd ~/repos/name-of-project.git |
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
| cat ~/.ssh/id_rsa.pub | pbcopy | |
| paste into server's ~/.ssh/authorized_keys |
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
| boardFeet = (boardThicknessInInches * boardWidthInInches * boardLengthInFeet) / 12 | |
| estimatedBoardFeet = (smallEndDiameterInInches + bigEndDiameterInInches) / 2 * lengthOfLogInFeet |
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
| PImage src; | |
| int circleWidth = 13; | |
| void setup() { | |
| size(displayWidth, displayHeight); | |
| background(0); | |
| noStroke(); | |
| src = loadImage("src/UnionSta-KC Skyline.jpg"); | |
| //src.resize(width, height); | |
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 "ofApp.h" | |
| //-------------------------------------------------------------- | |
| void ofApp::setup(){ | |
| numberOfSlices = 11; | |
| source.loadImage("source.jpg"); | |
| source.resize(1920 * 2, 1080 * 2); | |
| canvas.allocate(1920 * 2, 1080 * 2, GL_RGBA); | |
| canvas.begin(); | |
| ofClear(0); |
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 "ofApp.h" | |
| void ofApp::setup(){ | |
| source.loadImage("source.jpg"); | |
| source.resize(CANVAS_WIDTH, CANVAS_HEIGHT); | |
| canvas.allocate(CANVAS_WIDTH, CANVAS_HEIGHT, GL_RGBA); | |
| canvas.begin(); | |
| ofBackground(0, 0, 0); |
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
| import toxi.color.*; | |
| import toxi.geom.*; | |
| import toxi.processing.*; | |
| import java.util.*; | |
| int num = 100; | |
| float r; | |
| int c; | |
| PImage src; | |
| PGraphics canvas; |
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
| // http://labs.tineye.com/multicolr/rest/color_search/?limit=100&offset=0&colors[0]=73a1d2&colors[1]=d5c427&weights[0]=50&weights[1]=50 | |
| // http://img.tineye.com/flickr-images/?filepath=labs-flickr-public/images/3c/6872611445_3c927950b5_m.jpg&size=80 | |
| import java.util.*; | |
| import java.net.*; | |
| String baseUrl = "http://labs.tineye.com/multicolr/rest/color_search/?"; | |
| String baseImageUrl = "http://img.tineye.com/flickr-images/?filepath=labs-flickr-public/images/"; | |
| int pLimit = 200; |
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
| ArrayList<Pathfinder> paths = new ArrayList<Pathfinder>(); | |
| PVector center; | |
| PGraphics canvas; | |
| void setup() { | |
| size(displayWidth, displayHeight); | |
| canvas = createGraphics(displayWidth * 2, displayHeight * 2); | |
| canvas.beginDraw(); | |
| canvas.background(255); |
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
| ArrayList<Pathfinder> pathsLeft = new ArrayList<Pathfinder>(); | |
| ArrayList<Pathfinder> pathsRight = new ArrayList<Pathfinder>(); | |
| PVector center; | |
| PGraphics canvas; | |
| void setup() { | |
| size(displayWidth, displayHeight); | |
| canvas = createGraphics(displayWidth * 2, displayHeight * 2); | |
| canvas.beginDraw(); |
OlderNewer