- Run with Python:
python[3] main.py
- Input a grade percentage (0 to 100, inclusive, no symbols, decimals accepted)
- The program will return the GPA for that percentage
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 math import sqrt | |
import numpy as np | |
import pygame | |
import pyaudio | |
pygame.init() | |
# CD quality typically 44.1kHz | |
RATE = 44100 | |
# Update screen 60fps |
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
__pycache__/* | |
logs/* |
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
const.py | |
__pycache__/* | |
logs/* | |
stocks/* |
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 json | |
import boto3 | |
response_topic = 'cmd/neo/schedule/del/res' | |
client = boto3.client('iot-data', region_name=region) | |
step_function = boto3.client('stepfunctions', region_name=region) | |
dynamodb = boto3.client('dynamodb', region_name=region) | |
lambda_ = boto3.client('lambda', region_name=region) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
def main(q): | |
while True: | |
if q.not_empty: | |
event = q.get() | |
print('event:', event) | |
if event == 'exit': | |
return | |
else: |
Command | Description |
---|---|
git mv {old_name} {new_name} |
rename |
git commit -- ammend |
edit most recent commit (do before pushing to remote) |
git reset HEAD {file_name} |
unstage |
git restore --staged {file_name} |
unstage |
git checkout -- {file_name} |
replace with last committed version (dangerous: discards all local changes) |
git restore {file_name} |
replace with last committed version (dangerous: discards all local changes) |
git remote add {shortname} {url} |
add new remote repo as a shortname |
git fetch |
pulls data down, does not merge |
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
*.pyc | |
robin_stocks/ | |
__pycache__/ |
NewerOlder