This file contains hidden or 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 hashlib | |
from urllib.request import urlopen | |
import smtplib | |
import ssl | |
import os | |
import filecmp | |
from dotenv import load_dotenv | |
DIR_PATH = os.path.dirname(os.path.realpath(__file__)) |
This file contains hidden or 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 os | |
from PIL import Image | |
def split(gif): | |
im = Image.open(gif) | |
for frame in range(im.n_frames): | |
im.seek(frame) |
This file contains hidden or 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 time | |
import serial | |
# | |
# | |
# specify the port | |
PORT = "com6" # windows |
This file contains hidden or 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
; | |
; queue_size.asm - subroutine to check queue size. | |
; | |
.ORIG x3000 | |
LD R3, FIRST ; initialize front/head | |
ADD R3, R3, #1 ; add offset to test different values | |
LD R4, FIRST ; initialize rear/tail | |
ADD R4, R4, #3 ; add offset to test different values |
This file contains hidden or 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
; | |
; temp.asm - converts between celsius and fahrenheit | |
; Description - start code for HW8 | |
; | |
.ORIG x3000 | |
LD R1, TEMP ; load temperature | |
LD R2, UNIT ; load whether celsius/fahrenheit | |
BRz CELS ; if zero, interpret as C convert to F |
This file contains hidden or 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
; | |
; calc_v2.asm | |
; Performs addition/subtraction/multiplication/division/modulus/exponentiation | |
; between 2 single-digit, user-entered values to produce 1-2 digit result. | |
; | |
; R5 - operation type | |
; R4 - operand 1 | |
; R3 - operand 2 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 pywinauto | |
import time | |
import subprocess | |
import os | |
import datetime | |
def win_record(duration): | |
subprocess.run('start microsoft.windows.camera:', shell=True) # open camera app |
This file contains hidden or 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
# http://www.nasdaqtrader.com/trader.aspx?id=symboldirdefs | |
# NASDAQ-Listed Securities | |
# File Name: nasdaqlisted.txt | |
# FTP Directory: ftp://ftp.nasdaqtrader.com/symboldirectory | |
# Field Name Definition | |
# Symbol The one to four or five character identifier for each | |
# NASDAQ-listed security. | |
# Security Name Company issuing the security. | |
# Market Category The category assigned to the issue by NASDAQ based on |