Print a colon-separated list of all directories from the ~/code directory tree, except hidden ones and those below them
find ~/code -name '.*' -prune -o -type f -a -perm /u+x -printf ':%h\n' | sort | uniq | tr -d '\n'