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

+4

// String Arrays
private String scoreArray[] = {"0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16"};

private String scoreConverter(int a)
{		
	return scoreArray[a];
}
 

0

//console.log("route.params",req.route.params, "param 0", req.route.params[0]);
//console.log("stars", stars);
var starsPrint = "";
if (stars == 5 || stars == "5" || stars == "5\r")
    starsPrint = "Awarded stars: ★ ★ ★ ★ ★  ";
    else if (stars == 4 || stars == "4" || stars == "4\r")
    starsPrint = "Awarded stars: ★ ★ ★ ★ ☆  ";
else if (stars == 3 || stars == "3" || stars == "3\r")
    starsPrint = "Awarded stars: ★ ★ ★ ☆ ☆  ";
else if (stars == 2 || stars == "2" || stars == "2\r")
    starsPrint = "Awarded stars: ★ ★ ☆ ☆ ☆  ";
else if (stars == 1 || stars == "1" || stars == "1\r")
    starsPrint = "Awarded stars: ★ ☆ ☆ ☆ ☆  ";
else
    starsPrint = "Awarded stars: ☆ ☆ ☆ ☆ ☆  ";
 

anonymous

0

//refresh page
var output = new JavaScriptResult();
output.Script = "window.location = window.location";
return output;
 

+1

# actual production code
def to_json(self):
    """
    We must return XML always
    """
    return self.to_xml()
 

anonymous

-1

        private void buttonSeven_Click(object sender, EventArgs e)
        {
            textBoxResult.Text = "7";
        }

        private void buttonEight_Click(object sender, EventArgs e)
        {
            textBoxResult.Text = "8";
        }

        private void buttonNine_Click(object sender, EventArgs e)
        {
            textBoxResult.Text = "9";
            result = 9;
        }

        private void buttonFour_Click(object sender, EventArgs e)
        {
            textBoxResult.Text = "4";
        }

        private void buttonFive_Click(object sender, EventArgs e)
        {
            textBoxResult.Text = "5";
        }

        private void buttonSix_Click(object sender, EventArgs e)
        {
            textBoxResult.Text = "6";
        }

        private void buttonOne_Click(object sender, EventArgs e)
        {
            textBoxResult.Text = "1";
        }

        private void buttonTwo_Click(object sender, EventArgs e)
        {
            textBoxResult.Text = "2";
        }

        private void buttonThree_Click(object sender, EventArgs e)
        {
            textBoxResult.Text = "3";
        }

        private void buttonZero_Click(object sender, EventArgs e)
        {
            textBoxResult.Text = "0";
        }
 

anonymous

0

//break;
break;
 

anonymous

0

#define MAX_SIZET>------((size_t)(~(size_t)0)-2)

#define MAX_LUMEM>------((lu_mem)(~(lu_mem)0)-2)


#define MAX_INT (INT_MAX-2)  /* maximum value of an int (-2 for safety) */
 

anonymous

0

JSONArray jsonArray = new JSONArray();
//...
writer.write("{\"series\": [{\"data\": " + jsonArray.toString() + "}], \"yAxis\": {\"max\": " + maxAmount + ", \"plotLines\": [{\"value\": \"" + getAverageInvoicesAmount(invoices) + "\"}]}}");
 

anonymous

0

// it was unused... but sometimes i find "__TRY [...]"

/***** used macros                             ********************************/

//#define __TRY( foo )   if((foo) != ERR_NONE) {goto ERROR_EXIT;}  XXyzz : Goto , really ?!?!?
 

anonymous

0

def get_lenght_of_list(data)
    count = 0
    for each in data:
        count +=1
    return count