Compass tilt compensation library?

I have the adafruit LSM303DLHC compass and was wondering how to compensate tilt. I found the https://github.com/pololu/lsm303-arduino library with tilt compensation but couldn't figure how to use it. Does anyone have an example code for that library? When i was researching i saw that there were algorithms that you could use but i didn't find anything that said this is the algorithm for tilt compensation. If any one could help me that would be great. Thanks

Does anyone have an example code for that library?

You mean like in the examples folder?

Anything really.