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
Algoritmo "JogodaVelha" | |
// Criado por Vanderlei | |
// Desafio do curso de Algoritmos do Curso em Video | |
// Ainda esxistem alguns erros que tentarei consertar assim que possível | |
// Finalizado 22/10/2015 | |
// Linguagem : VisualG | |
Var | |
l, c : inteiro //variaveis de linha e coluna | |
a, b, resultx, resulty, i, j, q, t: inteiro | |
simNao, o, x, ff : caractere |
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
def test(): | |
print('hello world') |
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
#define adc_disable() (ADCSRA &= ~(1<<ADEN)) | |
const int wakeUpPin = PB0; | |
const int powerCheckPin = PB1; | |
// Generally, you should use "unsigned long" for variables that hold time | |
// The value will quickly become too large for an int to store | |
unsigned long previousMillis = 0; // will store last time PB0 went HIGH |
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
def check_time(start, stop, current): | |
if stop < start: | |
print('stop < start') | |
if start < current < 2359 or 0 < current < stop: | |
print('start < current < 2359 and 0 < current < stop') | |
return True | |
else: | |
print('start < current < 2359 and 0 < current < stop') | |
return False | |
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
<!DOCTYPE html> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Desafio 0003</title> | |
<style> |
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
class ClasseThread extends Thread{ | |
String descricaoClasse; | |
public ClasseThread(String descricao){ | |
descricaoClasse = descricao; | |
} | |
public void run(){ | |
int soma = 0; | |
for (int i = 0; i < 100; i++){ |
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 java.util.ArrayList; | |
class HelloWorld { | |
public static void main(String[] args) { | |
ArrayList<String[]> linhas = new ArrayList<>(); | |
//aqui fica dentro do WHILE ======= | |
String textoLinha = "vanderlei;alice;isa"; | |