current (IDE 1.05) sketch for arduino nunchuk?

i'm a beginner in Arduino (i bought the UNO two weeks ago) and i saw in the internet that you can use the nintendo wii nunchuck as an anagogic sensor for the Arduino.
I looked in the internet and a lot of programs to do that give me errors.
Can you give me the program to use the nunchuck as a sensor for IDE 1.0.5?

Thanks in advance

Thomas Civiero