Skip to content

Instantly share code, notes, and snippets.

// Here’s a snippet that likely provides a clearer explanation of why my organization chose to use a wrapper.
// The primary motivation was to unify instrumentation in alignment with both industry standards and organizational practices.
pub struct MyAsyncPgConnection {
conn: AsyncPgConnection,
span_provider: PgQuerySpan,
}
impl MyAsyncPgConnection {
/// Build a transaction, specifying additional details such as isolation level
@mihai-dinculescu
mihai-dinculescu / 01-build.rs
Last active September 4, 2024 17:48
ESP32-MQTT-Rust
// build.rs
use embuild::build::LinkArgs;
fn main() -> anyhow::Result<()> {
// Necessary because of this issue: https://github.com/rust-lang/cargo/issues/9641
LinkArgs::output_propagated("ESP_IDF")?;
Ok(())
}
@mihai-dinculescu
mihai-dinculescu / Jupyter-Lab-with-JavaScript-and-TypeScript.md
Last active March 21, 2024 08:39
JavaScript and TypeScript support for Jupyter Notebook and Jupyter Lab

Table of Contents

  1. Install

    • 1.1. Anaconda
    • 1.2. Jupyter Lab
    • 1.3. Node.js
    • 1.4. IJavascript
    • 1.5. ITypescript
  2. Run