I hereby claim:
- I am itsmeimtom on github.
- I am itsmeimtom (https://keybase.io/itsmeimtom) on keybase.
- I have a public key ASDJYtjMiIbsxeOBtDxAK2ku5kw3NL7Z0U1S9g_Zk-1vZwo
To claim this, I am signing this object:
// ==UserScript== | |
// @name Moodle (UoP) Auto Light/Dark Mode | |
// @namespace https://tomr.me | |
// @version 2024-02-07 | |
// @description Set the theme depending on browser theme preference | |
// @author TomR.me | |
// @match https://moodle.port.ac.uk/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=port.ac.uk | |
// @grant none | |
// ==/UserScript== |
// ==UserScript== | |
// @name SNCF 00h00 to 00:00 | |
// @namespace https://tomr.me | |
// @version 2024-01-16 | |
// @description Replace the "h" in the times on the SNCF website with colons | |
// @author TomR.me | |
// @match https://www.sncf-connect.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=sncf-connect.com | |
// @grant none | |
// ==/UserScript== |
// ==UserScript== | |
// @name Moodle (UoP) Mark All as Done | |
// @namespace https://tomr.me | |
// @version 2024-01-23 | |
// @description Mark all sections on a course page as done | |
// @author TomR.me | |
// @match https://moodle.port.ac.uk/course/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=port.ac.uk | |
// @grant none | |
// ==/UserScript== |
size = 10 | |
s = size | |
for i in range(0,size): | |
spaces = " "*i | |
stars = "*"*s | |
print(f'{spaces}{stars}') | |
s = s - 1 |
document.querySelectorAll('.advanced-notification-settings-toggle .tw-toggle__input').forEach( | |
e => { if(e.hasAttribute('checked')) e.click() }) |
I hereby claim:
To claim this, I am signing this object:
import os | |
import subprocess | |
import json | |
import re | |
from datetime import datetime | |
def dothings(folder): | |
listing = list() | |
# folder = f"Photos from {folder}" | |
# print(folder) |
def roundtotens(n): | |
n = int(n) | |
# ty https://stackoverflow.com/a/26454686 xoxo | |
return int((n + 9) // 10 * 10) | |
def percent_bar(percent): | |
hashCount = 0 | |
hashes = "" | |
dashes = "" |
function addTask(t, hseconds) { | |
window.setTimeout(function() { | |
document.querySelectorAll('ul.items .item_editor_input .public-DraftEditor-content span')[0].innerText = t; | |
document.querySelectorAll('ul.items .item_editor_submit')[0].click(); | |
}, hseconds * 500); | |
} | |
let i = 0; | |
for (task of tasks) { | |
addTask(task, i); |
import os, time | |
import morse_talk as mtalk | |
dotLen = 0.08 | |
print('Keyboard Lock LED Morse Code') | |
code = raw_input('Morse Code: ') | |
codeSplit = list(code) |