This file contains hidden or 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 transmission_rpc import Client | |
| import time | |
| import pyperclip | |
| import re | |
| import os | |
| tc = Client(host=os.getenv('T_HOST'), | |
| port=os.getenv('T_PORT'), | |
| username=os.getenv('T_USERNAME'), | |
| password=os.getenv('T_PASSWORD')) |
This file contains hidden or 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/env python | |
| from rich.console import Console | |
| from rich.table import Table | |
| from rich import box | |
| import sys, argparse, logging | |
| import requests | |
| import math | |
| import time | |
| import yaml |
This file contains hidden or 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 os | |
| from pathlib import Path | |
| import ebooklib | |
| from ebooklib import epub | |
| from bs4 import BeautifulSoup | |
| import argparse | |
| # https://medium.com/@zazazakaria18/turn-your-ebook-to-text-with-python-in-seconds-2a1e42804913 | |
| blocklist = ['[document]', 'noscript', 'header', 'html', 'meta', 'head', 'input', 'script'] |
This file contains hidden or 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 | |
| import time | |
| import winsound | |
| freq = 550 # Hz | |
| dotLength = 60 # milliseconds | |
| dashLength = dotLength * 3 | |
| pauseWords = dotLength * 7 | |
| alphaToMorse = {'a': ".-", 'b': "-...", 'c': "-.-.", 'd': "-..", 'e': ".", |
This file contains hidden or 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 java.util.*; | |
| public class RomanNumeralCalculator { | |
| public static void main(String[] args) { | |
| Scanner reader = new Scanner(System.in); | |
| while(true) { | |
| System.out.print("Enter a number: "); | |
| String input = reader.nextLine(); | |
| if(input.isEmpty()) { | |
| System.out.println("Goodbye."); |