/** * lowercase letters */
        $this->store['upper_Spec'] = array( *cut* );
        /** * uppercase letters */
        $this->store['lower_Spec'] = array( *cut* );
      
                    } else {
                      $errmsg='An unknown error occured.';
                    }
                  } else {
                    $errmsg='The passwords you entered do not match';
                  }
                } else {
                  $errmsg='Password has to be at least 8 characters long.';
                }
              } else {
                $errmsg='The email you entered is already in our database.';
              }
            } else {
              $errmsg='Please enter your email address.';
            }
          } else {
            $errmsg='Please enter your first name and your last name.';
          }
        } else {
        (...)
      
        // Happy debugging, suckers
        # define true (rand() > 10)
      

anonymous

-5

// Used on an HTML string to clean up the tags...I guess PHP's strip_tags() was too mainstream for this dude !
function filterTags($str)
{
    return preg_replace("#<[^>]*>#is", '', $str);
}
 

anonymous

-2

function isCC($num)
{
    $length = strlen($num);
    $fuck = 0;
    for($i = $length-1; $i>=0; $i--)
    {
        $digit = substr($num, $i, 1);
        if ((($length - $i) % 2) == 0)
        {
            $digit = $digit * 2;
	          if ($digit > 9)
							$digit = $digit - 9;
        }
        $fuck += $digit;
    } 
    return (($fuck % 10) == 0);
}
 

anonymous

+12

            try:
                createImage(path_info)
            except:
                try:
                    # sleep 0..1 segond
                    time.sleep(random())
                    createImage(path_info)
                except:
                    # sleep 0..1 segond
                    time.sleep(random())
                    createImage(path_info)
 

anonymous

+24

// sleep 150s
for ($a = 0; $a < 150 ; $a++ ) { 
      sleep(1);
}
 

anonymous

+27

// Not a joke, I've really seen that
for ($i=0 ; $i<3 ; $i++) {
  switch($i) {
    case 1:
      // do some stuff
      break;
    case 2:
      // do some stuff
      break;;
    case 3:
      // do some stuff
      break;
  }
}
 

anonymous

+8

article aside nav section section h1,
article aside section nav section h1,
article aside section section section h1,
article nav aside section h1,
article nav section aside section h1,
article nav section section section h1,
article section aside nav section h1,
article section nav aside section h1,
article section section aside section h1,
article section section nav section h1,
article section section section section h1,
aside article nav section section h1,
aside article section nav section h1,
aside article section section section h1,
aside nav article section section h1,
aside nav section article section h1,
aside nav section section section h1,
aside section article nav section h1,
aside section article section section h1,
aside section nav article section h1,
aside section nav section section h1,
aside section section article section h1,
aside section section nav section h1,
aside section section section section h1,
nav article aside section section h1,
nav article section aside section h1,
nav article section section section h1,
nav aside article section section h1,
nav aside section article section h1,
nav aside section section section h1,
nav section article aside section h1,
nav section article section section h1,
nav section aside article section h1,
nav section aside section section h1,
nav section section article section h1,
nav section section aside section h1,
nav section section section section h1,
section article aside nav section h1,
section article aside section section h1,
section article nav aside section h1,
section article nav section section h1,
section article section aside section h1,
section article section nav section h1,
section article section section section h1,
section aside article nav section h1,
section aside article section section h1,
section aside nav article section h1,
section aside nav section section h1,
section aside section article section h1,
section aside section nav section h1,
section aside section section section h1,
section nav article aside section h1,
section nav article section section h1,
section nav aside article section h1,
section nav aside section section h1,
section nav section article section h1,
section nav section aside section h1,
section nav section section section h1,
section section article aside section h1,
section section article nav section h1,
section section article section section h1,
section section aside article section h1,
section section aside nav section h1,
section section aside section section h1,
section section nav article section h1,
section section nav aside section h1,
section section nav section section h1,
section section section article section h1,
section section section aside section h1,
section section section nav section h1,
section section section section section h1 {
  font-size: 0.67em;
}
 

anonymous

+37

// John! If you'll svn remove this once more,
// I'll shut you, for God's sake!
// That piece of code is not “something strange”!
// That is THE AUTH VALIDATION.
 

anonymous

+24

function isNegative(number) { 
  if (number.match(/^-\d+$/)) {
    return true;
  } else {
    return false;
  }
}
 

anonymous

+21

boolean isTrue(boolean b) {
        HashMap map = new HashMap();
        b = ! !b;
        if (!(!(b == !b)) == false) {
            map.put(false, !(!(b != !b)));
        }
        return !map.containsKey(b) & (!true | !false);
    }
 

anonymous

+7

//I once saw a code that was completely riddled with this pattern
try {
    component.doSomething();
    component.doSomethingElse();
} catch (NullPointerException ex) {
    component = new Component();
    component.doSomething();
}