Skip to content

Instantly share code, notes, and snippets.

View hugobarauna's full-sized avatar

Hugo Baraúna hugobarauna

View GitHub Profile
@hugobarauna
hugobarauna / kino_benchee_example.livemd
Created February 15, 2024 18:04
Benchmark example using (future) kino_benchee

Benchmark using (future) kino_benchee

Mix.install(
  [
    {:explorer, "~> 0.8.0"},
    # {:kino_benchee, github: "livebook-dev/kino_benchee"},
    {:kino, "~> 0.12.3"},
    {:benchee, "~> 1.3"},
    {:kino_vega_lite, "~> 0.1.11"}
@hugobarauna
hugobarauna / kino_spinner.livemd
Created February 1, 2024 14:14
Livebook Kino Spinner component

Kino Spinner component

Mix.install([
  {:kino, "~> 0.12.3"}
])

Section

@hugobarauna
hugobarauna / dets_to_ets_init.livemd
Last active March 8, 2025 01:46
Hydrate ETS from DETS using an init GenServer - Livebook Notebook - free sample from Elixir Patterns book

Hydrate ETS from DETS using an init GenServer

Mix.install([
  {:kino, "~> 0.6.2"},
  {:telemetry, "~> 1.2.1"}
])

This is a free sample from the Elixir Patterns book

@hugobarauna
hugobarauna / example_teaching.livemd
Created October 11, 2023 17:30
Example of how to use a Livebook notebook for teaching purposes

Example of using a Livebook notebook for teaching

Mix.install([
  {:hidden_cell, github: "brooklinjazz/hidden_cell"}
])

How to use this notebook

@hugobarauna
hugobarauna / euro-exchange.livemd
Created August 10, 2023 13:45 — forked from rodrigues/euro-exchange.livemd
💶 Euro Exchange Rates History 📈

💶 Euro Exchange Rates History

Run in Livebook

Mix.install([
  {:briefly, "~> 0.4.1"},
  {:req, "~> 0.3.10"},
@hugobarauna
hugobarauna / membrane_dashboard.livemd
Created August 9, 2023 15:04
Membrane Dashboard using KinoMembrane and Livebook

Membrane pipeline dashboard

Logger.configure(level: :info)

Mix.install([
  :kino_membrane,
  :membrane_hackney_plugin,
@hugobarauna
hugobarauna / supervisor_lifecycle.livemd
Created December 20, 2022 18:32
Lifecycle of Supervisors and Processes - Livebook Notebook - free sample from Elixir Patterns book

Lifecycle of Supervisors and Processes

Mix.install([
  {:kino, "~> 0.6.2"}
])

This is a free sample from the Elixir Patterns book

@hugobarauna
hugobarauna / new_in_kino_bumblebee_0_1_3.livemd
Last active August 17, 2023 22:35
This notebook showcases two new neural network tasks added to Livebook Kino Bumblebee v0.1.3

What's new in Kino Bumblebee v0.1.3

Mix.install(
  [
    {:kino_bumblebee, "~> 0.1.3"},
    {:exla, "~> 0.4.1"}
  ],
  config: [nx: [default_backend: EXLA.Backend]]
)

How to query and visualize data from Google BigQuery dataset using Livebook smart cells in less than 5 minutes

Mix.install([
  {:kino_db, "~> 0.1.2"},
  {:req_bigquery, "~> 0.1.0"},
  {:kino_vega_lite, "~> 0.1.1"}
])
Cenário Faturamento mínimo Probabilidade
Conservador 37.000 90%
Boas chances 52.000 75%
Arriscado 67.000 50%