Skip to content

Instantly share code, notes, and snippets.

View Colcothar's full-sized avatar

Colcothar

View GitHub Profile
@Colcothar
Colcothar / checkApp.py
Created October 11, 2020 15:31
Check program is open Windows10
import subprocess
def processExists(process_name):
call = 'TASKLIST', '/FI', 'imagename eq %s' % process_name
output = subprocess.check_output(call).decode()
last_line = output.strip().split('\r\n')[-1]
return last_line.lower().startswith(process_name.lower())
print(process_exists('discord.exe'))
@Colcothar
Colcothar / Test stock prediction code.py
Last active June 17, 2020 12:52
Test stock prediction code
import numpy
import keras
from matplotlib import pyplot as plt
import math
import csv
def loadCSV(location):
rawData=[]
with open(location) as csvfile:
###
Use Guide:
1) Take your quizlet link ie "https://quizlet.com/xxxxxxxxx/match" and add 'micro' before the subdirectory match. It should look like this "https://quizlet.com/xxxxxxxxx/micromatch".
2) With your browser of choice, right click the page and left click "Inspect Element".
3) Navigate to the "Console" page of inspect element.
4) Copy ALL the code below and paste into the console.
5) Hit enter and follow the instructions on screen.
###