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
<?xml version="1.0" encoding="UTF-8"?> | |
<module type="PYTHON_MODULE" version="4"> | |
<component name="NewModuleRootManager"> | |
<content url="file://$MODULE_DIR$" /> | |
<orderEntry type="inheritedJdk" /> | |
<orderEntry type="sourceFolder" forTests="false" /> | |
</component> | |
<component name="TestRunnerService"> | |
<option name="PROJECT_TEST_RUNNER" value="Unittests" /> | |
</component> |
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 time import sleep | |
from sys import exit | |
while True: | |
try: | |
print(""" | |
e|-----5-------5-------5-------5-----| | |
B|-----------------------------------| |
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
#!/usr/bin/python3 | |
# it does what it says on the tin | |
# TODO: remove accesibility permission requirement | |
from pyautogui import write | |
from time import sleep | |
from random import randint | |
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
# WARNING: deletes all events in specified time range (line 53) | |
# see https://docs.google.com/spreadsheets/d/1Iwd2qV-xbHgyDU2YKQr7UedLvYhVsEmxciuPsk5rLA0/ for example spreadsheet layout | |
# there should be a credentials.json file in your working directory: see https://developers.google.com/calendar/api/quickstart/python#authorize_credentials_for_a_desktop_application | |
# also, properly setup your project's authorization screen to include both required scopes. | |
# code based on https://github.com/googleworkspace/python-samples/blob/main/calendar/quickstart/quickstart.py (and sheets equivalent) | |
from __future__ import print_function | |
import os.path | |
from google.auth.transport.requests import Request |
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 PIL import Image | |
from datetime import datetime, timedelta | |
from os import listdir | |
from shutil import move | |
import re | |
filenames = listdir("images/") | |
schedule = [ # weekday, start, name | |
[0, 9, "Discrete"], |
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 tabulate import tabulate | |
def newton(f,fprime, x, M, Ef): | |
x=[x] | |
n=0 | |
results = [["n", "x_n", "f(x_n)", "f\'(x_n)"], | |
[n, round(x[n], 8), round(f(x[n]), 8), round(fprime(x[n]), 8)]] | |
while n<M and abs(f(x[n])) > Ef and abs(fprime(x[n]))>0: | |
x.append(x[n] - f(x[n]) / fprime(x[n])) | |
n=n+1 |
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
/** | |
* @author : Vasileios Papadimas (papadimas@protonmail.com) | |
* @file : floatExpose.cpp | |
* @created : Saturday Oct 28, 2023 14:28:58 EEST | |
*/ | |
#include <bitset> | |
#include <iostream> | |
#include <ostream> | |
using std::cout; |
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
.text | |
.globl __start | |
_start: | |
la $a0, pn | |
li $v0, 4 | |
syscall # print prompt for n | |
la $v0, 5 | |
syscall # read n into $v0 |
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
#include <cmath> | |
#include <iostream> | |
#include <ostream> | |
using std::cout; | |
using std::endl; | |
int main(int argc, char *argv[]) { | |
float x = 1; | |
while (7 + x != 7) { |
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
.text | |
.globl _start | |
_start: | |
lw $t0, newl | |
li $t1, 0 | |
main: | |
li $v0, 12 |
OlderNewer