Skip to content

Instantly share code, notes, and snippets.

@Mintonne
Mintonne / tbills_calc.py
Last active February 18, 2025 15:56
Treasury Bills Calculator
def calculate_treasury_bill_return():
"""
Calculates the return on a Treasury bill.
Fixed tax rate (if applicable), 365 days/year, and specific maturity options.
"""
# Get inputs from the user
while True:
try:
face_value = float(input("Enter the Face Value (e.g., 5000000): "))
@Mintonne
Mintonne / index.js
Created February 1, 2025 21:32
Remove .org on Lean Domain Search
document.querySelectorAll('div').forEach(div => {
// Find the .com button inside the div using the specific class
const comButton = Array.from(div.querySelectorAll('button.D3bn80gpjJYbThlrC75D')).find(button => button.textContent.trim() === '.com');
// If the button exists and is NOT disabled, remove the parent div and log the details
if (comButton && comButton.disabled) {
if (div.classList.contains('udApQ0SPEGKgZUVAry6t')) {
console.log(`Removing parent div with class 'udApQ0SPEGKgZUVAry6t' containing enabled '.com' button. Div content: "${div.innerHTML.trim()}"`);
// Remove the parent div