/** * 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

0

//found this after decompilation of production C# code that a former employee failed to check in to Perforce

int num1 = Datetime.Month;
      string str1;
      switch (num1.ToString())
      {
        case "01":
          str1 = "Jan";
          break;
        case "1":
          str1 = "Jan";
          break;
        case "02":
          str1 = "Feb";
          break;
        case "2":
          str1 = "Feb";
          break;
        case "03":
          str1 = "Mar";
          break;
        case "3":
          str1 = "Mar";
          break;
        case "04":
          str1 = "Apr";
          break;
        case "4":
          str1 = "Apr";
          break;
        case "05":
          str1 = "May";
          break;
        case "5":
          str1 = "May";
          break;
        case "06":
          str1 = "Jun";
          break;
        case "6":
          str1 = "Jun";
          break;
        case "07":
          str1 = "Jul";
          break;
        case "7":
          str1 = "Jul";
          break;
        case "08":
          str1 = "Aug";
          break;
        case "8":
          str1 = "Aug";
          break;
        case "09":
          str1 = "Sep";
          break;
        case "9":
          str1 = "Sep";
          break;
        case "10":
          str1 = "Oct";
          break;
        case "11":
          str1 = "Nov";
          break;
        case "12":
          str1 = "Dec";
          break;
        default:
          str1 = "";
          break;
      }
 

Browse all snippets