Skip to content

Instantly share code, notes, and snippets.

@tux-peng
tux-peng / notepad.py
Created February 13, 2026 22:53
Tkinter, notepad. This script includes the core features: a text area, a menu bar (File/Edit/Help), and basic file operations (Open, Save, Exit).
import tkinter as tk
from tkinter import filedialog, messagebox
class Notepad:
def __init__(self, root):
self.root = root
self.root.title("Untitled - Notepad Clone")
self.root.geometry("800x600")
# Create the main text area
@tux-peng
tux-peng / convert_m4b.sh
Created February 13, 2026 01:43
convert m4b chapters to mp3, vorbis, opus or speex
#!/bin/bash
#convert_m4b.sh book.m4b --(mp3|opus|vorbis|speex)
# 1. Parse Arguments
input_file=""
format="mp3" # Default format
for arg in "$@"; do
case "$arg" in