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
| /* | |
| Reading a NES Controller | |
| By Sebastian Tomczak | |
| 21 July 2007 | |
| Adelaide, Australia | |
| bit 7 = A | |
| bit 6 = B | |
| bit 5 = select | |
| bit 4 = start |
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
| //void setup() { | |
| size(480, 480); | |
| background(255, 255, 255); //(255, 255, 233) | |
| smooth(); | |
| //} | |
| //void draw() { | |
| int ra1; | |
| int ra2; | |
| int ra3; |
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
| <html> | |
| <video autoplay></video> | |
| <script> | |
| var videoTag = document.querySelector("video"); | |
| navigator.webkitGetUserMedia("video,audio", | |
| function(stream) { | |
| var url = webkitURL.createObjectURL(stream); | |
| videoTag.src = url; | |
| } |
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
| // Coded initially in 2004 Benjamin Gaulon corrupt.recyclism.com // more info on www.recyclism.com // | |
| // Feel free to use / modify / Share this // | |
| PImage img; | |
| String fileName = "test"; // You file name here (should be in the DATA Folder) | |
| String fileExt = ".jpg"; // file extansion (works best with JPG or PNG) | |
| void setup(){ | |
| size(950,150); | |
| byte b[] = loadBytes(fileName + fileExt); |
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
| WONKA: Wrong, sir, wrong! Under Section Thirty-Seven B of | |
| the contract signed by him it states quite clearly that all | |
| offers shall become null and void if--and you can read it | |
| for yourself in this photostatic copy: "I, the undersigned, | |
| shall forfeit all rights, privileges, and licenses herein | |
| and herein contained, et cetera, et cetera . . . fax mentis | |
| incendium gloria culpum, et cetera, et cetera . . . memo bis | |
| punitor delicatum!" It's all there, black and white, clear | |
| as crystal! |
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
| Recruits: [chanting] This is my rifle. There are many others like it, but this one is mine. | |
| My rifle is my best friend. It is my life. I must master it as I must master my life. | |
| Without me, my rifle is useless. Without my rifle, I am useless. I must fire my rifle true. | |
| I must shoot straighter than my enemy, who is trying to kill me. I must shoot him before he | |
| shoots me. I will. Before God I swear this creed: my rifle and myself are defenders of my | |
| country, we are the masters of our enemy, we are the saviors of my life. So be it, until | |
| there is no enemy, but peace. Amen. |
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
| <html><head><script type="text/javascript" src="http://www.google.com/friendconnect/script/rpc_relay.js"></script></head></html> |
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
| /* | |
| PROCESSINGJS.COM HEADER ANIMATION | |
| MIT License - F1lT3R/Hyper-Metrix | |
| Native Processing Compatible | |
| */ | |
| // Set number of circles | |
| int count = 20; | |
| // Set maximum and minimum circle size | |
| int maxSize = 100; |
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
| /* | |
| switch (tweet[i]) { | |
| case 'A': | |
| //do something when var equals A | |
| morseTweet[i][9] = ".-"; | |
| break; | |
| case 'B': | |
| morseTweet[i] = "-..."; | |
| //do something when va9r equals B | |
| break; |
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 <WiFi.h> | |
| char ssid[] = "yourNetwork"; // your network SSID (name) | |
| char pass[] = "12345678"; // your network password | |
| int status = WL_IDLE_STATUS; // the Wifi radio's status | |
| void setup() { | |
| // initialize serial: | |
| Serial.begin(9600); |