The code I used for the book (and much more material) is now available on the Apress github repository that can be found here

Each folder contains much more than simply the code I used in the book. It contains additional material to expand the book content, easier material for beginners and exercises

that will help the reader in grasping more difficult concepts.