commit 7118ddd4c1aefbcee008a584c459215ce1ffbfd5 Author: TED A. ⭕ Date: Mon Nov 6 22:41:36 2023 +0000 Upload files to "/" diff --git a/lastfm.js b/lastfm.js new file mode 100644 index 0000000..912126e --- /dev/null +++ b/lastfm.js @@ -0,0 +1,13 @@ +function clickOnMoreRepliesLinks() { + const links = document.querySelectorAll('.js-more-replies'); + + if (links.length === 0) { + return; + } + + links[0].click(); + + setTimeout(function() {clickOnMoreRepliesLinks();}, 1000); +} + +clickOnMoreRepliesLinks(); diff --git a/linescript.py b/linescript.py new file mode 100644 index 0000000..88f3f26 --- /dev/null +++ b/linescript.py @@ -0,0 +1,4 @@ +with open("lines") as file_in: + lines = [] + for line in file_in: + print('STUFF SOMETHING HERE' + line.split('\n')[0] + '.STUFF SOMETHING HERE">' + line.split('\n')[0] +'STUFF SOMETHING HERE') diff --git a/senr.py b/senr.py new file mode 100644 index 0000000..f4c9fe0 --- /dev/null +++ b/senr.py @@ -0,0 +1,106 @@ +#!/usr/bin/python + +charactersforward = { + "A": "Q", + "B": "O", + "C": "S", + "D": "N", + "E": "R", + "F": "P", + "G": "X", + "H": "W", + "I": "Y", + "J": "M", + "K": "T", + "L": "Z", + "M": "V", + "N": "A", + "O": "E", + "P": "C", + "Q": "D", + "R": "B", + "S": "F", + "T": "U", + "U": "K", + "V": "I", + "W": "L", + "X": "J", + "Y": "G", + "Z": "H", + "0": "8", + "1": "6", + "2": "3", + "3": "9", + "4": "7", + "5": "2", + "6": "1", + "7": "0", + "8": "5", + "9": "4" +} + +charactersbackward = { + "Q": "A", + "O": "B", + "S": "C", + "N": "D", + "R": "E", + "P": "F", + "X": "G", + "W": "H", + "Y": "I", + "M": "J", + "T": "K", + "Z": "L", + "V": "M", + "A": "N", + "E": "O", + "C": "P", + "D": "Q", + "B": "R", + "F": "S", + "U": "T", + "K": "U", + "I": "V", + "L": "W", + "J": "X", + "G": "Y", + "H": "Z", + "8": "0", + "6": "1", + "3": "2", + "9": "3", + "7": "4", + "2": "5", + "1": "6", + "0": "7", + "5": "8", + "4": "9" +} + +def translate(characters, type): + finalstring = "" + if type == 1: + for x in characters: + try: + finalstring += charactersforward.get(x) + except Exception as e: + raise + else: + finalstring += x + if type == 2: + for x in characters: + try: + finalstring += charactersbackward.get(x) + except Exception as e: + raise + else: + finalstring += x + return finalstring + +choice = input("translate forwards?") +initialstring = input() +if choice == "y": + print(translate(initialstring.upper(), 1)) +else: + print(translate(initialstring.upper(), 2)) diff --git a/webptopng.sh b/webptopng.sh new file mode 100644 index 0000000..576710b --- /dev/null +++ b/webptopng.sh @@ -0,0 +1,4 @@ +for file in /home/red/Scripts/2/* +do + dwebp "$file" -o "$file.png" +done