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 selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
import requests | |
import time | |
image_file = "ScanImage003.jpg" | |
color_file = "ScanImage003-Colorized.jpg" |
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 time | |
class NonBlockingDelay(): | |
""" Non blocking delay class """ | |
def __init__(self): | |
self._timestamp = 0 | |
self._delay = 0 | |
def timeout(self): |
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 time | |
import sys | |
import winsound | |
def countdown(t): | |
print() | |
while t: | |
mins, secs = divmod(t, 60) |
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
#include <iostream> | |
#include <windows.h> | |
void countdown(int t) { | |
int mins = 0, secs = 0, hours = 0; | |
printf("\n"); | |
while (t) { | |
mins = t / 60; |