- Start by providing an overview of the topics you will cover. If they’re more than 10 topics, combine them into sections and only mention the sections.
- Your target audience is an intermediate GenAI engineers.
- Be deeply technical and don't read any equations.
- Always mention what an acronym stands for and read them letter by letter (e.g. LLM should be read one-by-one, but InstructGPT, DeepSeek, etc. should be read as whole words).
- less back-channeling
- Always provide a summary of a technique you mention for the first time.
Markdown Preview Enhanced supports rendering flow charts
, sequence diagrams
, mermaid
, PlantUML
, WaveDrom
, GraphViz
, Vega & Vega-lite
, Ditaa
diagrams.
You can also render TikZ
, Python Matplotlib
, Plotly
and all sorts of other graphs and diagrams by using Code Chunk.
Please note that some diagrams don't work well with file exports such as PDF, pandoc, etc.
This feature is powered by flowchart.js.
# ================================================================================= | |
# Name : cancerlog.py | |
# Author : Ali Firooz | |
# Version : 0.0.1 | |
# Copyright : Copyright © 2023 Ali Firooz. All Rights Reserved. | |
# Description : based on: https://ankitbko.github.io/blog/2021/04/logging-in-python/ | |
# Usage : | |
# ================================================================================= | |
# TODO: | |
# 1. Add functionality to log other levels (info, warning, error, critical) |
# Topic: Connection & Cursor | |
# this doesn't work in Jupyter notebooks! | |
# https://aiomysql.readthedocs.io/en/stable/cursors.html | |
# ############################################################################################################# | |
# A cursor for connection. | |
# Allows Python code to execute MySQL command in a database session. Cursors are created by the `Connection.cursor()`: | |
# They are bound to the connection for the entire lifetime and all the commands are executed in the context of the database | |
# session wrapped by the connection. | |
# | |
# Cursors that are created from the same connection are not isolated, |
#! /usr/bin/env python3 | |
# ================================================================================= | |
# Name : list-groups.py | |
# Author : Ali Firooz | |
# Version : 0.0.2 | |
# Copyright : Copyright © 2025 Ali Firooz. All Rights Reserved. | |
# Description : Adding the function of listing available groups in poetry. | |
# Can be used by running `$ poetry run groups` or | |
# `$ poetry run groups "<pyproject.toml path>"`. |
This script is used to enable importing local Python modules from your project directory without having to install the project in development mode or modify PYTHONPATH
environment variable manually every time. The .pth
file, is a special file that Python looks for when determining import paths.
Note that you need to be in your local
module
dir, then run these commands.
CURRENT_FOLDER=$(pwd) && echo "$CURRENT_FOLDER"