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
adaptive_lighting: | |
template: | |
- sensor: | |
- name: "Sun Position" | |
unit_of_measurement: "°" | |
state: "{{ state_attr('switch.adaptive_lighting', 'sun_position') }}" | |
state_class: measurement | |
- name: "Adaptive Color Temperature" |
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
#!/bin/bash | |
###################################################################### | |
# @author : Vasileios Papadimas (papadimas@protonmail.com) | |
# @file : tickets.sh | |
# @created : Sunday Mar 24, 2024 20:23:31 EET | |
###################################################################### | |
output=$(curl -s 'https://www.ticketservices.gr/event/gno-die-walkuere/?lang=el' | iconv -f "windows-1253" -t UTF-8) |
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 |
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: | |
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
/** | |
* @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
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
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
# 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
#!/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 | |
NewerOlder