Welcome to Under100Lines! This repository contains a collection of small, concise projects and code snippets, each comprising less than 100 lines of code. Whether you're a beginner looking to explore bite-sized coding challenges or an experienced developer seeking inspiration, you'll find something interesting here.
Under100Lines aims to demonstrate the power of simplicity in programming. Each project or code snippet is designed to be easy to understand and modify, making it ideal for learning and experimentation. Explore the repository and discover new ideas to enhance your coding skills!
- Bot Email for Gmail: Automate sending emails using Gmail.
- Bot WhatsApp Message: Automate sending messages on WhatsApp.
- Files Converter: Convert files between different formats (e.g., PDF to Word).
- Speech to Text and Vice-Versa: Convert speech to text and text to speech.
- Merge PDF: Combine multiple PDF files into one.
- Python Autodraw: Use pyautogui to auto-draw sketches.
- Compress Files: Compress files to reduce their size.
- Duplicate Files Remover: Find and remove duplicate files.
- Encrypt Files: Encrypt files to secure them.
- QR Code Generator: Generate QR codes for links or text.
- Search String from Multiple Files: Search for a string across multiple files.
- Alarm Clock: Set alarms and reminders.
- ASCII Art: Generate ASCII art from text or images.
- Battery Notification: Notify when the battery level is low.
- Bouncing Ball: Simple animation of a bouncing ball.
- CAPTCHA Generator: Generate CAPTCHA images for security.
- Capture Screenshot: Take screenshots of the screen.
- Chatbot: Create a simple conversational chatbot.
- Convert Numbers to Words: Convert numerical digits to words.
- Create Simple Stopwatch: Track time with a stopwatch.
- Decimal to Binary Converter: Convert decimal numbers to binary.
- Encrypt and Decrypt Text: Encrypt and decrypt text messages.
- Password Generator: Generate strong passwords.
- Sine Wave Generator: Generate sine wave patterns.
- To-Do GUI: Simple to-do list with a graphical user interface.
- All Links from Given Webpage: Extract all links from a webpage.
- Check Website Connectivity: Test the connectivity of a website.
- Fetch Current Weather: Get the current weather conditions.
- Fetch Open Ports: Scan for open ports on a server.
- Generate WordCloud from Wikipedia: Create word clouds from Wikipedia articles.
- Get Content from Locked Page: Extract content from password-protected or locked web pages.
- Get DNS Record: Retrieve DNS records for a domain.
- Get YouTube Comments from Link: Fetch comments from a YouTube video link.
To run the programs in this repository, you'll need to have Python and pip installed on your system. Follow the steps below to install Python and pip:
- Visit the Python Downloads page.
- Download the latest version of Python for Windows.
- Run the installer and follow the installation instructions.
- Check the "Add Python to PATH" option during installation.
- macOS usually comes with Python pre-installed. Open Terminal and type
python --version
to check the installed version. - If Python is not installed or you want to install a different version, consider using Homebrew to install it. Run
brew install python
in Terminal.
- Python is usually pre-installed on most Linux distributions. Open Terminal and type
python --version
to check the installed version. - If Python is not installed or you want to install a different version, use your package manager to install it. For example, on Ubuntu, run
sudo apt-get install python3
.
- Download get-pip.py to a folder on your computer.
- Open Command Prompt and navigate to the folder where
get-pip.py
is located. - Run the following command to install pip:
- Add the Python and pip installation directories to your system's PATH environment variable:
- Right-click on "This PC" or "My Computer" and select "Properties".
- Click on "Advanced system settings" on the left.
- Click on the "Environment Variables..." button.
- Under "System variables", select the "Path" variable and click "Edit...".
- Click "New" and add the path to Python (e.g.,
C:\Python39
) and pip (e.g.,C:\Python39\Scripts
). - Click "OK" to save the changes.
- After installing Python, pip should be automatically installed.
- To verify that pip is installed, open Terminal and type
pip --version
.
- Clone this repository to your local machine.
- Navigate to the project directory you want to launch.
- Install external libraries with pip install -r requirements.txt
- Open a terminal or command prompt.
- Run the Python files.
Contributions to Under100Lines are welcome! Whether you want to add a new project, fix a bug, or improve documentation, feel free to open a pull request.