[triv] README: code snippets added