Converting a piece of PIC code to Arduino

I don't have one and I wanted to know how the code would be for an Arduino.
I got some attiny's so I wanted to use one of them.