Skip to content

Instantly share code, notes, and snippets.

View vovavili's full-sized avatar
🎯
Focusing

Vladimir vovavili

🎯
Focusing
  • Paris, France
View GitHub Profile
@vovavili
vovavili / adf_email_on_failure.py
Last active December 17, 2024 08:21
E-mail in case a task in an ADF pipeline fails.
#!/usr/bin/env python3
"""A simple script to generate ADF + HTML code for a pretty e-mail report in case of an activity failure.
Every e-mail + fail activity has to be separate. Per each pair of activities, uncomment one line in the
ACTIVITIES constant to generate an increasingly populated report.
E-mail subject should be:
@concat('The pipeline ', pipeline().pipelineName, ' has failed.')
"""
import html
@vovavili
vovavili / app.py
Last active April 10, 2025 22:34
Streamlit + Firebase authorization example
#!/usr/bin/env python3
# /// script
# dependencies = [
# "extra-streamlit-components",
# "firebase-admin",
# "requests",
# "streamlit",
# "pyJWT",
# "email-validator",
# ]
@vovavili
vovavili / time_script.py
Last active August 30, 2024 10:10
Time Python scripts
"""Time functions using a decorator."""
import time
from collections.abc import Callable
from functools import wraps
def time_function[**P, R](func: Callable[[P], R]) -> Callable[[P], R]:
"""
Time functions using a decorator.