Skip to content

Commit

Permalink
Add headers to examples/running.livemd
Browse files Browse the repository at this point in the history
  • Loading branch information
arathunku committed Mar 29, 2024
1 parent bd79527 commit 8a8f900
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion examples/running.livemd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Mix.install([
])
```

## FIT Intake
## FIT Decode

```elixir
alias ExtFit.{Record, Field}
Expand All @@ -25,6 +25,8 @@ record_msgs = Record.records_by_message(records, :record)
IO.puts("Decoded #{length(records)} records from FIT file")
```

## Map based on GPS

```elixir
points =
record_msgs
Expand Down Expand Up @@ -75,6 +77,8 @@ MapLibre.new(
|> Kino.MapLibre.new()
```

## Prepare records for DataView

```elixir
alias ExtFit.{Record, Types, Field}

Expand Down Expand Up @@ -202,6 +206,8 @@ summary =
|> Enum.into(%{})
```

## Inspect

```elixir
summary
|> Enum.map(fn {_, msg} ->
Expand All @@ -218,6 +224,8 @@ end)
|> Kino.Layout.tabs()
```

## Graphs!

```elixir
alias VegaLite, as: Vl

Expand Down

0 comments on commit 8a8f900

Please sign in to comment.