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
a = 0 | |
while True: | |
a += 1 | |
print(a) |
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 | |
a = 8.94112903 * (10 ** 111) | |
while a > 0: | |
a -= 1 | |
print(f"The heat death of the universe will occur in {a} minutes") | |
time.sleep(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
import dbus | |
import time | |
item = "org.freedesktop.Notifications" | |
notfy_intf = dbus.Interface( | |
dbus.SessionBus().get_object(item, "/"+item.replace(".", "/")), item) | |
def countdown(t): | |
while t > 0: |
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 numpy as np | |
from sklearn.linear_model import LinearRegression | |
from sklearn.preprocessing import PolynomialFeatures | |
years = np.array(range(2004, 2024)).reshape(-1, 1) | |
required_gpa = np.array( | |
[17.1, 17.1, 16.8, 17.1, 17.1, 17.6, 17.8, 16.3, 16.3, 15.5, 16.3, 16.0, 16.0, 15.8, 16.4, 16.7, 16.8, 17.3, 17.1, | |
17.7]) # Change me! | |
poly = PolynomialFeatures(degree=2) |