Skip to content

Instantly share code, notes, and snippets.

View tim-trulia's full-sized avatar

Tim Correia tim-trulia

  • Trulia
  • Pleasanton, CA
View GitHub Profile
@tim-trulia
tim-trulia / blinky.php
Created December 5, 2012 18:14 — forked from WizardOfArc/blinky.php
A little cutesy command line animation
<?php
/**
* Blinky is a little ASCII animation inspired by
* Shane Harter's "Progress Display for PHP CLI scripts"
* see: https://gist.github.com/4211173
* this one is written by Azi Crawford
**/
function draw_blink ($counter){
$frame = $counter % 12;
@tim-trulia
tim-trulia / blinky.php
Created December 5, 2012 18:14 — forked from WizardOfArc/blinky.php
A little cutesy command line animation
<?php
/**
* Blinky is a little ASCII animation inspired by
* Shane Harter's "Progress Display for PHP CLI scripts"
* see: https://gist.github.com/4211173
* this one is written by Azi Crawford forked by Tim Correia
**/
define('BLINKS', array( 'O.O', 'O.o', 'O.-', 'O.o', 'O.O', 'o.O', '-.O', 'o.O', 'O.O', 'o.o', '-.-', 'o.o') );
function draw_blink ($counter){