Skip to content

Instantly share code, notes, and snippets.

View davidnunez's full-sized avatar

David Nuñez davidnunez

View GitHub Profile
@davidnunez
davidnunez / gist:1043316
Created June 23, 2011 19:02
Optimized Eyeball Clock Array init
// initializes your array
$newcolori = array();
// - for loop will repeat everything inside the '{...}' a certain number of times
// - i starts at 0 ('i=0')
// - i increases by 1 every time the loop repeats 'i++'
// - the for loop will repeat as long as i is less than or equal to 60 (starts at 0 goes up to 59) 'i<=60'
for (i=0;i<=60;i++)
{
// - i is just like any other variable here... it just changes on every loop