I wrote this the other day, feel free to improve on it and fix errors.

local counter1 = 0
local counter2 = 0
local countermain = 0
term.clear()
term.setCursorPos(0,0)
print "Quarry Starting"
-- white - dig
-- orange - head left
-- magenta - head right
-- light blue - head up
-- yellow - head down
-- lime - platform forward
-- pink - platform back
-- grey - platform right
-- light grey - platform left
-- cyan - platform up
-- purple - platform down
-- blue -
-- brown -
-- green -
-- red -
-- black -
while (countermain < 75) do
    while (counter1 < 16) do
	    rs.setBundledOutput("left",colors.white)
	    sleep(0.2)
	    rs.setBundledOutput("left",0)
	    sleep(0.5)
	    rs.setBundledOutput("left",colors.orange)
	    sleep(0.2)
	    rs.setBundledOutput("left",0)
	    sleep(0.5)
	    counter1 = counter1 + 1
	    end
    counter1 = 0
    rs.setBundledOutput("left",colors.yellow)
    sleep(0.2)
    rs.setBundledOutput("left",0)
    sleep(0.5)
    while (counter2 < 16) do
	    rs.setBundledOutput("left",colors.white)
	    sleep(0.2)
	    rs.setBundledOutput("left",0)
	    sleep(0.5)
	    rs.setBundledOutput("left",colors.magenta)
	    sleep(0.2)
	    rs.setBundledOutput("left",0)
	    sleep(0.5)
	    counter2 = counter2 + 1
	    end
    counter2 = 0
    rs.setBundledOutput("left",yellow)
    sleep(0.2)
    rs.setBundledOutput("left",0)
    sleep(0.5)
    countermain = countermain + 1
    end
term.clear()
term.setCursorPos(0,0)
print "Quarry Finished"
os.reboot()