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 sensorPino = A0; | |
int delPino = 5; //pwm | |
byte sensorValor; | |
int sensorMax = 0; | |
int sensorMin = 1023; | |
//const int nroLeituras = 10; | |
//int leituras[nroLeituras]; | |
//int indice=0; | |
//int total=0; | |
//int media=0; |
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
#Newbie programmer | |
def factorial(x): | |
if x == 0: | |
return 1 | |
else: | |
return x * factorial(x - 1) | |
print factorial(6) | |
#First year programmer, studied Pascal |
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 x, y; | |
void setup() { | |
size(800, 450); | |
background(255); | |
fill(0, 0, 100, 20); | |
strokeWeight(1.8); | |
stroke(0, 0, 100, 80); | |
} |
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> | |
<title> cibeleborg </title> | |
<style> | |
body { | |
background: url("http://24.media.tumblr.com/tumblr_lgjl1fsev41qh644lo1_500.jpg") repeat; | |
} | |
</style> | |
</head> | |
<body> |
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
package generics; | |
import static java.lang.Math.*; | |
import static java.lang.System.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
class Main { | |
public static void main(String[] tristana) { |
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
public class Elemento<E> { | |
public Elemento(Elemento<E> elemento, Object object) { | |
} | |
public Elemento<E> getProx() { | |
return null; | |
} | |
public void setProx(Elemento<?> topo) { |
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
library ieee; | |
use ieee.std_logic_1164.all; | |
use ieee.numeric_std.all; | |
entity deslocadornbit is generic(tamanho: natural := 0); port( | |
controle: in std_logic_vector(tamanho-1 downto 0); | |
entrada: in std_logic_vector(tamanho-1 downto 0); | |
saida: out std_logic_vector(tamanho-1 downto 0)); | |
end entity; |
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
public class FlashLightRect { | |
float tamanho, path; | |
color rectcolor; | |
int x, y; | |
PVector caminho, direcao; | |
FlashLightRect (color c) { | |
tamanho = 100; | |
//muda as cores |
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
class Cgg { | |
PFont font; | |
float x, y, espessura; | |
int fields[][]; | |
Cgg() { | |
espessura = 5; | |
fields = new int[width][height]; | |
font = createFont("Ubuntu", 4); | |
textFont(font); |
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
// URL that generated this code: | |
// http://txt2re.com/index-java.php3?s=55998-episode-0-8-4-news-roundup.mp3&6&-55&-2&-56&46&-57&52&-58&48&-59&7&1 | |
import java.util.regex.*; | |
class Main | |
{ | |
public static void main(String[] args) | |
{ | |
String txt="55998-episode-0-8-4-news-roundup.mp3"; |