fix the folder pattern.
Ignore compiled snippet file.
add some old code.