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
#!/usr/bin/python3 | |
import socket | |
import os | |
import subprocess | |
import smtplib | |
from email.mime.text import MIMEText | |
import datetime | |
gw = os.popen("ip -4 route show default").read().split() | |
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
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 sys | |
import threading | |
from gpiozero import LED, RGBLED, Button, Buzzer | |
from time import time, sleep | |
from signal import pause | |
from random import randint | |
STATUS_BLOCKED = (0,0,0) | |
STATUS_LOCK = (1,0,0) | |
STATUS_UNLOCK = (0,1,0) |
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
from time import sleep, time | |
total_reaction_time=0 | |
for i in range(5): | |
print('Run number: ', i+1) | |
print('Ready...') | |
sleep(5) | |
start = time() |
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
/*-------------------------------------------------------------- | |
Program: eth_websrv_AJAX_IN | |
Description: Uses Ajax to update the state of two switches | |
and an analog input on a web page. The Arduino | |
web server hosts the web page. | |
Does not use the SD card. | |
Hardware: Arduino Uno and official Arduino Ethernet | |
shield. Should work with other Arduinos and |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.