How to code remote to control servo motor?

Hey,
I have an IR receiver and a remote control/ And i wanted to control a servo with the remote. Any idea?

Start with Ken Shirriff's library