Code Samples for the Social Media Analytics Book