Skip to content

Instantly share code, notes, and snippets.

Avatar

Vanderlei Mendes hdelei

View GitHub Profile
@hdelei
hdelei / desafio-0003.html
Created Oct 15, 2021
Desafio 003 - Curso do João
View desafio-0003.html
<!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>
View time_diff.py
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 / tinnyWakeupSoundCard.ino
Last active Sep 8, 2019
Arduino Attiny85 algorithm to wake up USB soundcard device
View tinnyWakeupSoundCard.ino
#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
View teste.py
def test():
print('hello world')
View jogodaVelha.alg
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