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
| {"colors": | |
| [ | |
| {"year": 2000, "name": "Cerulean Blue", "values": [155, 183, 212] }, | |
| {"year": 2001, "name": "Fuschia Rose", "values": [199, 67, 117] }, | |
| {"year": 2002, "name": "True Red", "values": [191, 25, 50] }, | |
| {"year": 2003, "name": "Aqua Sky", "values": [123, 196, 196] }, | |
| {"year": 2004, "name": "Tigerlily", "values": [226, 88, 62] }, | |
| {"year": 2005, "name": "Blue Turquoise", "values": [83, 176, 174] }, | |
| {"year": 2006, "name": "Sand Dollar", "values": [222, 205, 190] }, | |
| {"year": 2007, "name": "Chilly Pepper", "values": [155, 27, 48] }, |
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
| int broches[] = {8,9,10,11,12}; | |
| int bouton = 2; | |
| int compteur = 0; | |
| int etat_precedent = HIGH; | |
| void setup() { | |
| for(int i = 0; i < 5; i++){ | |
| pinMode(broches[i], OUTPUT); | |
| } | |
| pinMode(bouton, INPUT_PULLUP); |
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 controlP5.*; | |
| ControlP5 cp5; | |
| PImage[] images = new PImage[12]; | |
| int imageIndex = 0; | |
| void setup(){ | |
| size(800,800); | |
| for(int i = 0; i < 12; i++){ | |
| images[i] = loadImage(i+".gif"); |
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
| int qty = 14000; | |
| float a = 0.1; | |
| float mult; | |
| void setup() { | |
| size(1000, 800,P3D); | |
| noFill(); | |
| strokeWeight(0.1); | |
| colorMode(HSB); |
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
| var rainbowColors = ['#9659A7','#2494C1','#49BB6C','#F1C500','#D55957']; |
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
| if(posX > width){ | |
| speedX = speedX* -1; | |
| fill(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
| export HTTPDUSER=`ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1` | |
| ## SYMFONY UTILS (beware, commands are relative to the root directory of a symfony project) | |
| alias setupPermissions='sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" ./app/cache ./app/logs && sudo chmod +a "`whoami` allow delete,write,append,file_inherit,dir ectory_inherit" ./app/cache ./app/logs' | |
| alias cc='php app/console cache:clear' |
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 gifAnimation.*; | |
| PImage image; | |
| GifMaker gifExport; | |
| void setup() { | |
| image = loadImage("brocoli.jpg"); | |
| size(image.width,image.height); | |
| gifExport = new GifMaker(this, "export.gif"); | |
| gifExport.setRepeat(0); // make it an "endless" animation |
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 processing.video.*; | |
| Capture c; | |
| int w = 800; | |
| int h = 800; | |
| void setup() { | |
| background(0); | |
| size(w, h); | |
| c=new Capture(this, w, h); |
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
| int i, f=0; | |
| int value=2; | |
| int s=500; | |
| void setup(){ | |
| size(s,s); | |
| } | |
| void draw() { | |
| loadPixels(); | |
| while (++i < (s*s)) { | |
| f=frameCount; |
NewerOlder