examples/example-snippets: fix whitespace and some code