An open API service indexing awesome lists of open source software.

https://github.com/adityasreevatsak/useful-code-snippets

Useful-Code-Snippets is a collection of practical and reusable code snippets for various everyday programming tasks. It serves as a handy reference for automating, optimising, and simplifying common operations across different domains.
https://github.com/adityasreevatsak/useful-code-snippets

automation file-handling git image-processing python regex

Last synced: about 2 months ago
JSON representation

Useful-Code-Snippets is a collection of practical and reusable code snippets for various everyday programming tasks. It serves as a handy reference for automating, optimising, and simplifying common operations across different domains.

Awesome Lists containing this project

README

          

---
title: Utility-Shelf
emoji: 📦
colorFrom: blue
colorTo: green
sdk: streamlit
app_file: app.py
pinned: false
---

#

Useful Code Snippets

Useful-Code-Snippets is a collection of practical and reusable code snippets for various everyday programming tasks.
It serves as a handy reference for automating, optimising, and simplifying common operations across different domains.

## List of code snippets

### Audio & Speech Processing

✦ [Pitch Analyzer](Audio_Speech_Processing/analyse_pitch.py)

✦ [Text to Speech Conversion](Audio_Speech_Processing/text_to_speech.py)

---

### Automation & Productivity

✦ [Logging Setup](Automation_Productivity/logging_setup.py)

✦ [Website Online Status](Automation_Productivity/webpage_online_status.py)

---

### File Handling

✦ [Convert PDF to images](File_Handling/convert_pdf_to_images.py)

✦ [Convert PDF to Word Document](File_Handling/convert_pdf_to_word.py)

✦ [Convert Word Document to PDF](File_Handling/convert_word_doc_to_pdf.py)

✦ [Disk Space Usage](File_Handling/check_disk_usage.py)

✦ [Encrypt & Decrypt Files](File_Handling/encrypt_decrypt_files.py)

✦ [File Compression and ZIP Expansion](File_Handling/compress_expand_files.py)

✦ [Generate File Tree as Text](File_Handling/generate_file_tree.py)

✦ [Get Max File Size in Directory](File_Handling/get_max_file_size.py)

✦ [Merge Multiple PDFs into One](File_Handling/merge_pdfs_in_folder.py)

✦ [Recursively Unzip and Delete](File_Handling/recursively_unzip_and_delete.py)

✦ [Split PDF into Single Pages](File_Handling/split_pdf.py)

---

### Git Utilities

✦ [Check Git Repo Status](Git_Utilities/check_git_repo_status.py)

✦ [Get Names of All Repos on GitHub Profile](Git_Utilities/get_github_repos.py)

✦ [Useful Git Commands](Git_Utilities/Useful%20Git%20Commands.md)

---

### Hugging Face Utilities

✦ [Delete Folders From HuggingFace Repo](HuggingFace_Utilities/delete_folder_on_hub.py)

---

### Image Processing

✦ [Convert Image to Grayscale](Image_Processing/convert_and_display_grayscale.py)

✦ [Compress Images](Image_Processing/compress_image_by_percentage.py)

✦ [Convert Image Format](Image_Processing/convert_image_format.py)

✦ [Resize all images in a folder](Image_Processing/resize_all_images_in_folder.py)

---

### Jupyter Notebook Utilities

✦ [Convert Jupyter Notebook to a Cleaned Python File](Jupyter_Notebook_Utilities/convert_notebook_to_clean_py.py)

✦ [Embed a YouTube Video into Jupyter Notebook](Jupyter_Notebook_Utilities/embed_youtube_video.py)

---

### Regex Cheatsheet

✦ [Convert Text to Lower Case](Regex_Cheatsheet/convert_text_to_lower_case.py)

✦ [Convert Text to Sentence Case](Regex_Cheatsheet/convert_text_to_sentence_case.py)

✦ [Convert Text to Upper Case](Regex_Cheatsheet/convert_text_to_upper_case.py)

✦ [Extract Dates](Regex_Cheatsheet/extract_dates.py)

✦ [Extract Hashtags](Regex_Cheatsheet/extract_hashtags.py)

✦ [Extract URLs](Regex_Cheatsheet/extract_urls.py)

✦ [Find Phone Numbers](Regex_Cheatsheet/find_phone_numbers.py)

✦ [Remove Extra Spaces](Regex_Cheatsheet/remove_extra_spaces.py)

✦ [Validate Email](Regex_Cheatsheet/validate_email.py)

---