Skip to content

Instantly share code, notes, and snippets.

View SilentGlasses's full-sized avatar
🏠
Working from home

SilentGlasses SilentGlasses

🏠
Working from home
View GitHub Profile
@SilentGlasses
SilentGlasses / github_alerts.md
Created October 18, 2025 00:03
GitHub Alerts

Alerts are a Markdown extension based on the blockquote syntax that you can use to emphasize critical information. On GitHub, they are displayed with distinctive colors and icons to indicate the significance of the content.

> [!NOTE]
> Useful information that users should know, even when skimming content.

> [!TIP]
> Helpful advice for doing things better or more easily.

> [!IMPORTANT]
import os
import matplotlib.pyplot as plt
def get_size_format(b, factor=1024, suffix="B"):
"""
Scale bytes to its proper byte format
e.g:
1253656 => '1.20MB'
1253656678 => '1.17GB'