ADXL 345 & Adafruit SD data logger_ how to merge the two working codes together?

The whole post, apart from the glowing code, was originally all caps.