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
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; |
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
### 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: |
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
*.swp | |
lib-cov | |
*.seed | |
*.log | |
*.csv | |
*.dat | |
*.out | |
*.pid | |
*.gz |
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
long ultimo_tweet = 0; | |
searchResult = twitter.search("#testing", ultimo_tweet); | |
for (int i=0; i<searchResult.size(); i++) { | |
Tweet t = (Tweet)searchResult.get(i); | |
String user = t.getFromUser(); | |
String msg = t.getText(); | |
Date d = t.getCreatedAt(); | |
ultimo_tweet = t.getId(); | |
println(id); |
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
#regex | |
def findNumber(path): | |
reGex = re.compile('\d+') | |
match = reGex.search(path) | |
return match.group() |
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
long previous; | |
int interval = 400; | |
void setup(){ | |
previous = 0; | |
} | |
void draw(){ | |
long current = millis(); |
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
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 { |
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
for i in *.JPG; convert -resize 10% $i $i:r.png |
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
%!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. |
OlderNewer