combining programs?

It's all those delays. Look up the blink without delay example and apply it to your code.

Only if you are trying it then put a resistor in the LED