Skip to content

Instantly share code, notes, and snippets.

@zorbash
Created October 24, 2021 11:06
Show Gist options
  • Save zorbash/e5fc445aae78e513f365ff1554341d31 to your computer and use it in GitHub Desktop.
Save zorbash/e5fc445aae78e513f365ff1554341d31 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