How to short a dc Motor with arduino?
The schematic in the link is for powering a motor, not shorting it out (as per what you'd do when designing an active brake). Look at the bottom of this link to see how they do it using a H bridge. This is the link that is also covered in the question in your link: -