Skip to content

Instantly share code, notes, and snippets.

View vst121's full-sized avatar
Forged in fire, ready for new challenges.

Vahid Saadat vst121

Forged in fire, ready for new challenges.
View GitHub Profile
# `import this` 🐍
`import this` is a Python Easter egg.
When executed, it prints **The Zen of Python** by Tim Peters — a set of guiding principles for writing Python code.
```python
import this
@vst121
vst121 / autoshrink.py
Last active November 10, 2025 19:31
Resize all images in a Word (.docx) file to 40% of their original size.
# Requires: python-docx
# Install via: pip install python-docx
from docx import Document
file_path = "input.docx"
output_path = "output_resized.docx"
doc = Document(file_path)
using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
namespace AIInCSharp
{