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
var nElements = 7; | |
var myCounter = 0; | |
var ping = 0; | |
function setup() { | |
createCanvas(600, 500); | |
} | |
function draw() { | |
background((255*(1-(ping*=0.95))), 255,255); |
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
import peasy.*; | |
import peasy.org.apache.commons.math.*; | |
import peasy.org.apache.commons.math.geometry.*; | |
PeasyCam cam; | |
float x,y,z; | |
void setup(){ | |
size(800,800,P3D); | |
cam = new PeasyCam(this,100); | |
x=random(-800,800); | |
y=random(-800,800); |
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
from datetime import datetime | |
class ProcNetDev(object): | |
"""Parses /proc/net/dev into a usable python datastructure. | |
By default each time you access the structure, /proc/net/dev is re-read | |
and parsed so data is always current. | |
If you want to disable this feature, pass auto_update=False to the constructor. | |