Update gitignore: exclude the dir code but add *.java and *.scala