Skip to content

Instantly share code, notes, and snippets.

@zorbash
Created October 26, 2021 10:02
Show Gist options
  • Save zorbash/aff21ac049a0c9fdba5016814dfda3aa to your computer and use it in GitHub Desktop.
Save zorbash/aff21ac049a0c9fdba5016814dfda3aa to your computer and use it in GitHub Desktop.

Notes

All Notes

query = IO.gets("search: ") |> String.trim()
notes = NervesLivebook.Notes.all() |> Enum.filter(&String.contains?(&1.text, query))

Kino.DataTable.new(notes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment