Add .gitignore
Add mmap code snippets.