Skip to content

Instantly share code, notes, and snippets.

View fmind's full-sized avatar
🐍
Senior MLOps Engineer at Decathlon

Médéric Hurier (Fmind) fmind

🐍
Senior MLOps Engineer at Decathlon
View GitHub Profile
@fmind
fmind / adapter.mermaid
Last active January 28, 2024 13:37
MLOps Abstractions
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fmind
fmind / keybindings.json
Last active November 21, 2023 19:32
VS Code Settings & Keybindings for AI, ML and MLOps development in Python
[
// ACTIONS
{
"key": "alt+a",
"command": "workbench.action.showAllSymbols"
},
{
"key": "alt+b",
"command": "workbench.action.navigateBack"
},
@fmind
fmind / stdev.py
Created January 6, 2022 10:52
Snippets for SQLite scripts.
"""Declare User-Defined Functions (UDF) for SQLite databases."""
# IMPORTS
import math
import typing as T
# CLASSES
@fmind
fmind / extensions.py
Last active January 7, 2022 08:24
Snippets for SQLAlchemy scripts.
"""Implement custom logics over SQLAlchemy SQL engines.
SQLite Extensions: https://github.com/nalgeon/sqlean
Reference: https://docs.sqlalchemy.org/en/14/core/engines.html
"""
# IMPORTS
import sys
import sqlite3
@fmind
fmind / typer-cli.py
Last active January 7, 2022 08:25
Snippets for Typer applications.
"""Manage the Command-Line Interface (CLI) of the project."""
# IMPORTS
import typing as T
import typer
# CONFIGS
@fmind
fmind / gradio-app.py
Last active January 7, 2022 08:24
Snippets for Gradio app.
"""Start a simple Gradio application."""
# IMPORTS
import gradio as gr
# CONFIGS
TITLE = "Gradio App"
ARTICLE = """
@fmind
fmind / pytest-sqlalchemy.py
Last active January 7, 2022 08:25
Snippets for Pytest fixtures.
"""Declare fixtures for SQLAlchemy (session and engine)."""
# IMPORTS
import sqlalchemy as sql
from sqlalchemy import orm
from project import models # TODO
# FIXTURES
" PLUGINS
set exchange
set surround
set commentary
set visualbell
set noerrorbells
set textobj-entire
set highlightedyank
set multiple-cursors
set ReplaceWithRegister