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
| //Hypotrochoid(a,b,h,da,db) | |
| //a is the radius of the fixed circle | |
| //b is the radius of the circle rotating inside the fixed circle | |
| //h is the distance between the drawing and the centre | |
| //on the rotating circle | |
| Hypotrochoid h; | |
| void setup() { | |
| size(800, 800); |
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
| //Python acts as server | |
| //code for processing to run as client | |
| import processing.net.*; | |
| Client myClient; | |
| String dataIn; | |
| boolean firstContact; | |
| //code for Seiffert's spherical spiral | |
| float r; //radius of sphere |
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://www.binarytides.com/python-socket-server-code-example/ | |
| # https://github.com/Uberi/speech_recognition#readme | |
| #imports for server | |
| import socket | |
| #imports for jacobian functions | |
| import scipy | |
| import math | |
| from scipy.special import ellipj |
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
| //create keywords for identifying variables inside the p5 sketch | |
| var keywords = ['color','composition','layout','bright','brightness','dark','saturated']; | |
| var paletteMult; | |
| var r = []; | |
| var g = []; | |
| var b = []; | |
| var rad = []; | |
| var numCircles; | |
| var x = []; |
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
| Cluster cluster1, cluster2, cluster3,cluster4; | |
| PImage img; //create the image object for trapping snow | |
| boolean showImage = false; | |
| ArrayList<Cluster>clusters; | |
| void setup() { | |
| size(700,950, P2D); | |
| img = loadImage("data/bruce.png"); //load the image into the system | |
| image(img, 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
| oFsetup(){ | |
| for(int i = 0; i < n; i++) { | |
| ofTexture cur; | |
| cur.allocate(512, 512, GL_RGB); | |
| textures.push_back(cur); | |
| } | |
| } | |
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
| // | |
| // SDL_Arduino_INA3221 Library Test Code | |
| // SDL_Arduino_INA3221.cpp Arduino code - runs in continuous mode | |
| // Version 1.1 | |
| // SwitchDoc Labs January 31, 2015 | |
| // | |
| // | |
| // This was designed for SunAirPlus - Solar Power Controller - www.switchdoc.com | |
| // |
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
| /*This CSS is optimized for an iPhone4 display */ | |
| html{ | |
| background-color: #00CC99; | |
| color: white; | |
| } | |
| body{ | |
| font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | |
| font-size: 14px; |
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
| { | |
| "single": [ | |
| { | |
| "text": "Damn I look good tonight", | |
| "smiling": true, | |
| "glasses": false | |
| }, | |
| { | |
| "text": "Should have gotten glasses when mom said so", | |
| "smiling": false, |
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 "cinder/app/App.h" | |
| #include "cinder/app/RendererGl.h" | |
| #include "cinder/gl/gl.h" | |
| #include "cinder/GeomIO.h" | |
| #include "cinder/ImageIo.h" | |
| #include "cinder/MayaCamUI.h" | |
| #include "cinder/Utilities.h" | |
| #include "cinder/Rand.h" | |
| #include <sstream> |