Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am z3a on github.
* I am z3a (https://keybase.io/z3a) on keybase.
* I have a public key whose fingerprint is 1010 1056 2E42 E256 A5E8 F256 DDD7 9BFC F67E 9B87
To claim this, I am signing this object:
size(160 * 3, 160 * 3);
PImage img;
colorMode(RGB, 5);
img = loadImage("gray_5.jpg");
loadPixels();
float cms = 0;
int a = 0;
int b = 0;
@z3a
z3a / trashcan.js
Last active December 28, 2015 20:29
var mysql = require('mysql');
var gpio = require("gpio");
var moment = require('moment');
var osc = require('node-osc');
var _ = require('underscore');
var pinNum = 17;
var fecha = moment('2013-11-06 11:20:35');
var client = new osc.Client('192.168.2.4', 11234);
import processing.serial.*;
//http://forum.arduino.cc/index.php/topic,39922.0.html
PImage img;
int x = 0;
float r,g,b,bright;
Serial myPort;
byte[] column = new byte[16]; //var para guardar las lecturas de la img
%!TEX TS-program = xelatex
\documentclass[12pt]{scrartcl}
% The declaration of the document class:
% The second line here, i.e.
% \documentclass[12pt]{scrartcl}
% is a standard LaTeX document class declaration:
% we say what kind of document we are making in curly brackets,
% and specify any options in square brackets.
for i in *.JPG; convert -resize 10% $i $i:r.png
long previous;
int interval = 400;
void setup(){
previous = 0;
}
void draw(){
long current = millis();
String response = "Hello 1,2345 10 lorem ipsum 12 dol 34 sit 093 at bla 8749";
void setup(){
String[][] test = matchAll(response, "([1-4])");
if (test != null){
for (int i = 0; i<test.length; i++){
println("text: "+test[i][1]);
}
} else {