Skip to content

Instantly share code, notes, and snippets.

View jupihes's full-sized avatar

Hesam jupihes

View GitHub Profile
@jupihes
jupihes / Markdown_to_Beamer.md
Last active June 23, 2026 12:48
Markdown_to_LaTeX Beamer slides

Here’s a practical guide to convert Markdown into LaTeX Beamer slides, plus a working sample.

Best option: Pandoc

The standard tool for this is Pandoc. It can convert Markdown directly into a Beamer PDF or into a .tex Beamer source file.

Install

  • macOS: brew install pandoc
  • Ubuntu/Debian: sudo apt install pandoc texlive-latex-extra
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

to get repetitive exact pattern

regex_pattern = r'MKT_WHITELIST_POOL_\d{8}_([^_]+)(?:_\1)?(?:_(?:part|Part|pART|PART|)\d{1})\.csv'

sample_list = [
MKT_WHITELIST_POOL_20250723_PO4189OLG_1.csv
MKT_WHITELIST_POOL_20250723_PO4189OLG_PO4189OLG_1.csv
MKT_WHITELIST_POOL_20250723_PO4189OLG_PO4189OLG_Part1.csv

Question from deepseek

Is it possible to use polars to connect with trino and write data with more speed? provide me detailed explanation, comparison, python code to do so and proper URL links to read more on this.

Answer

Yes, you can use Polars to connect with Trino for efficient data writing. Below is a detailed explanation, performance comparison, Python code, and resources for optimization.

4G CELL ID logic

ECI = eNodeBID * $$2^{28-22}$$ + CellID

5G CELL ID logic

  • NCI(NR Cell Identity) :gNB ID + CI
    • Length: 36bit
  • Range: 0 to 68719476735

Installing Python Packages

pip vs. conda

# Install a pip package in the current Jupyter kernel

MobaXterm session export data extraction

Below regex pattern help to extract needful information from Portable export of SSH sessions. Although not complete, can help data extraction from export file.

SSH_pattern = r'(?<Servername>[\w. ()]+)=#(?<Type>\d+)#0%(?<IP>[\w.]+)%(?<port>\d+)%%%([\w.-]+)%([\d-]+)%%%([\w.-]+)%%\d%([\w.-]+)%([\w

Local local linux repo

Modification in .repo files as

  • Comment mirrorlist line
  • Uncomment baseurl line and add local address

Check https://iranrepo.ir/