PIC to arduino

I've got a personal project to do an LED chaser. I've been looking all over google and on here for a couple of days and all I can find is a PIC version of exactly what I want to do.

If someone could help me translate this to arduino code it'll be a lot of help. As for hard ware on my end, I'm going to have 8 LEDs running through a 74hc595 shift register using an arduino uno r3. I can wire it all up, but when it comes to code I'm completely lost.

Don't cross-post please, it just waste's everyone's time ...