Skip to content

Instantly share code, notes, and snippets.

View hdelei's full-sized avatar

Vanderlei Mendes hdelei

View GitHub Profile
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";
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++){
@hdelei
hdelei / desafio-0003.html
Created October 15, 2021 00:14
Desafio 003 - Curso do João
<!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>
@hdelei
hdelei / time_diff.py
Created June 9, 2020 20:44
Time shifts
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
@hdelei
hdelei / fluent-design-reveal-highlight.markdown
Created September 14, 2019 01:44
Fluent design - Reveal highlight
@hdelei
hdelei / tinnyWakeupSoundCard.ino
Last active September 8, 2019 15:10
Arduino Attiny85 algorithm to wake up USB soundcard device
#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
def test():
print('hello world')
@hdelei
hdelei / jogodaVelha.alg
Created October 22, 2015 22:50 — forked from anonymous/jogodaVelha.alg
Jogo da Velha
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