Skip to content

Instantly share code, notes, and snippets.

@Leetroch
Leetroch / ram_monitor_extended
Created February 8, 2020 10:09
Personal RAM program
import psutil
import math
import time
from apscheduler.schedulers.background import BackgroundScheduler
import winsound
#import sys
import numpy as np
import copy
@Leetroch
Leetroch / ram_monitor
Created January 13, 2020 14:51
Personal_memory_monitor_script
from typing import List
import psutil
import math
import time
def occ_rate() ->float:
memory = psutil.virtual_memory()
occ_rate = float(memory.used) / float(memory.total) * 100
return float(occ_rate)
@Leetroch
Leetroch / three-words
Created June 17, 2018 06:05
Checkio_elementary_three-words
def checkio(words: str) -> bool:
split_words = words.split()
count = 0
for w in split_words:
if w.isalpha():
count += 1
while count == 3:
return True
break
elif w.isdigit():