Skip to content

Instantly share code, notes, and snippets.

Avatar

Vanderlei Mendes hdelei

View GitHub Profile
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
View teste.py
def test():
print('hello world')
@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 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
You can’t perform that action at this time.