Check It Yeah, It's On

17Jul/140

Code Poetry: We are the 99 Percent

"We are the 99%"

<?php
class Warfare
{
    public $we = 0.99;
    private $bigMoney = 0.01;
}
?>

Filed under: Code, Code Poetry No Comments
19Jun/130

Code Poetry: Everyday I’m Shufflin’

"Everyday I'm Shufflin'"
-LMFAO

<?php
$day = date('l');

switch ($day) {
    case 'Sunday':
    case 'Monday':
    case 'Tuesday':
    case 'Wednesday':
    case 'Thursday':
    case 'Friday':
    case 'Saturday':
        shuffle($me);
        break;
}

// LMFAO
?>
Everyday I'm Shufflin' in PHP

Everyday I'm Shufflin' in PHP

Filed under: Code, Code Poetry No Comments
7Nov/110

Code Poetry: Do or do not while… there is no try catch

"Do or do not [while]... there is no try [catch]."
-Yoda

<?php
//try {

    do {
        echo "Do!";
        
        $do = rand(0, 1);
        
    } while ($do);

//} catch (Exception $e) {
//}

// Yoda
?>
Yoda: Do or do not while... there is no try catch

Yoda: Do or do not while... there is no try catch

Filed under: Code, Code Poetry No Comments
6Nov/110

Code Poetry: It’s not the size of the dog in the fight, it’s the size of the fight in the dog

"It's not the size of the dog in the fight, it's the size of the fight in the dog."
-Mark Twain

<?php
$fight = new stdClass();
$fight->dog = array(
	"large dog", 
	"big dog"
);

$dog = new stdClass();
$dog->fight = array(
	"determination", 
	"perseverance", 
	"refuse to quit", 
	"strive for your dreams"
);

if (sizeof($fight->dog) > sizeof($dog->fight)) {
    echo "It's not this";
}

if (sizeof($fight->dog) < sizeof($dog->fight)) {
    echo "It's this";
}

// Mark Twain
?>
Filed under: Code, Code Poetry No Comments
4Nov/110

Code Poetry: Of all the things I’ve lost, I miss my mind the most

"Of all the things I've lost, I miss my mind the most"
-Mark Twain

<?php
$lost_things[] = "my mind";
$missed_most = end($lost_things);

// Mark Twain
?>
Filed under: Code, Code Poetry No Comments