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

+1

##Import files
df1=fread("Master_September 26, 2018_08.18.000.csv")
df2=fread("Master_September 26, 2018_08.18.001.csv")
df3=fread("Master_September 26, 2018_08.18.002.csv")
df4=fread("Master_September 26, 2018_08.18.003.csv")
df5=fread("Master_September 26, 2018_08.18.004.csv")
df6=fread("Master_September 26, 2018_08.18.005.csv")
df7=fread("Master_September 26, 2018_08.18.006.csv")
df8=fread("Master_September 26, 2018_08.18.007.csv")
df9=fread("Master_September 26, 2018_08.18.008.csv")
df10=fread("Master_September 26, 2018_08.18.009.csv")

##Remove duplicate column
df1=df1[,-50]
df2=df2[,-50]
df3=df3[,-50]
df4=df4[,-50]
df5=df5[,-50]
df6=df6[,-50]
df7=df7[,-50]
df8=df8[,-50]
df9=df9[,-50]
df10=df10[,-50]

##Reduce columns
df1=sqldf('select Finished,ResponseId,RecordedDate,UserLanguage,S1,S1a,S2_1,S2_2,S2_3,S2_4,S2_5,M1,M2,Country,SelectedTP,E1,E2,E2a,E2a_9_TEXT,E2b_1,E2b_2,E2b_3,E2b_4,E2b_5,E2b_6,E3_1,E3_2,E3_3,E3_4,E3_5,E3_6,E4,E1a from df1')
df2=sqldf('select Finished,ResponseId,RecordedDate,UserLanguage,S1,S1a,S2_1,S2_2,S2_3,S2_4,S2_5,M1,M2,Country,SelectedTP,E1,E2,E2a,E2a_9_TEXT,E2b_1,E2b_2,E2b_3,E2b_4,E2b_5,E2b_6,E3_1,E3_2,E3_3,E3_4,E3_5,E3_6,E4,E1a from df2')
df3=sqldf('select Finished,ResponseId,RecordedDate,UserLanguage,S1,S1a,S2_1,S2_2,S2_3,S2_4,S2_5,M1,M2,Country,SelectedTP,E1,E2,E2a,E2a_9_TEXT,E2b_1,E2b_2,E2b_3,E2b_4,E2b_5,E2b_6,E3_1,E3_2,E3_3,E3_4,E3_5,E3_6,E4,E1a from df3')
df4=sqldf('select Finished,ResponseId,RecordedDate,UserLanguage,S1,S1a,S2_1,S2_2,S2_3,S2_4,S2_5,M1,M2,Country,SelectedTP,E1,E2,E2a,E2a_9_TEXT,E2b_1,E2b_2,E2b_3,E2b_4,E2b_5,E2b_6,E3_1,E3_2,E3_3,E3_4,E3_5,E3_6,E4,E1a from df4')
df5=sqldf('select Finished,ResponseId,RecordedDate,UserLanguage,S1,S1a,S2_1,S2_2,S2_3,S2_4,S2_5,M1,M2,Country,SelectedTP,E1,E2,E2a,E2a_9_TEXT,E2b_1,E2b_2,E2b_3,E2b_4,E2b_5,E2b_6,E3_1,E3_2,E3_3,E3_4,E3_5,E3_6,E4,E1a from df5')
df6=sqldf('select Finished,ResponseId,RecordedDate,UserLanguage,S1,S1a,S2_1,S2_2,S2_3,S2_4,S2_5,M1,M2,Country,SelectedTP,E1,E2,E2a,E2a_9_TEXT,E2b_1,E2b_2,E2b_3,E2b_4,E2b_5,E2b_6,E3_1,E3_2,E3_3,E3_4,E3_5,E3_6,E4,E1a from df6')
df7=sqldf('select Finished,ResponseId,RecordedDate,UserLanguage,S1,S1a,S2_1,S2_2,S2_3,S2_4,S2_5,M1,M2,Country,SelectedTP,E1,E2,E2a,E2a_9_TEXT,E2b_1,E2b_2,E2b_3,E2b_4,E2b_5,E2b_6,E3_1,E3_2,E3_3,E3_4,E3_5,E3_6,E4,E1a from df7')
df8=sqldf('select Finished,ResponseId,RecordedDate,UserLanguage,S1,S1a,S2_1,S2_2,S2_3,S2_4,S2_5,M1,M2,Country,SelectedTP,E1,E2,E2a,E2a_9_TEXT,E2b_1,E2b_2,E2b_3,E2b_4,E2b_5,E2b_6,E3_1,E3_2,E3_3,E3_4,E3_5,E3_6,E4,E1a from df8')
df9=sqldf('select Finished,ResponseId,RecordedDate,UserLanguage,S1,S1a,S2_1,S2_2,S2_3,S2_4,S2_5,M1,M2,Country,SelectedTP,E1,E2,E2a,E2a_9_TEXT,E2b_1,E2b_2,E2b_3,E2b_4,E2b_5,E2b_6,E3_1,E3_2,E3_3,E3_4,E3_5,E3_6,E4,E1a from df9')
df10=sqldf('select Finished,ResponseId,RecordedDate,UserLanguage,S1,S1a,S2_1,S2_2,S2_3,S2_4,S2_5,M1,M2,Country,SelectedTP,E1,E2,E2a,E2a_9_TEXT,E2b_1,E2b_2,E2b_3,E2b_4,E2b_5,E2b_6,E3_1,E3_2,E3_3,E3_4,E3_5,E3_6,E4,E1a from df10')

##Append data and Output to CSV
L1 = list(df1,df2,df3,df4,df5,df6,df7,df8,df9,df10)
 

anonymous

+1

//  found in several places of a program from one coder during his vacations
// when asked about he replied it is taking the absolute value of axisX

axisX=axisX*axisX/axisX
 

anonymous

0

function intersect($input_1,$input_2) {
    return array_intersect($input_1,$input_2);
}
 

anonymous

0

public static String buildUrlEncode(String cityName) {
		if(cityName != null) {
			String encodedString = (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((cityName.replace('.', '-'))
					  .replace('ù', 'u')).replace('ú', 'u')).replace('û', 'u')).replace('ü', 'u')).replace('ý', 'y')).replace('ë', 'e')).replace('à', 'a'))
					  .replace('á', 'a')).replace('â', 'a')).replace('ã', 'a')).replace('ä', 'a')).replace('å', 'a')).replace('æ', 'a')).replace('ç', 'c'))
					  .replace('è', 'e')).replace('é', 'e')).replace('ê', 'e')).replace('ë', 'e')).replace('ì', 'i')).replace('í', 'i')).replace('î', 'i'))
					  .replace('ï', 'i')).replace('ð', 'o')).replace('ñ', 'n')).replace('ò', 'o')).replace('ó', 'o')).replace('ô', 'o')).replace('õ', 'o'))
					  .replace('ö', 'o')).replace('ø', 'o')).replace(' ', '-')).replace('/', '-')).replace('\'', '-')).replace(":", "")).replace("~", ""))
					  .replace("!", "")).replace("@", "")).replace("#", "")).replace("$", "")).replace("%", "")).replace("*", "")).replace("(", ""))
					  .replace(")", "")).replace("_", "")).replace("+", "")).replace("{", "")).replace("}", "")).replace("[", "")).replace("]", ""))
					  .replace(";", "")).replace("'", "")).replace(":", "")).replace("\"", "")).replace("<", "")).replace(">", "")).replace("?", ""))
					  .replace(",-", "-")).replace("----", "-")).replace("---", "-")).replace("--", "-"));
			return encodedString;
		}
		return "";
	}
 

anonymous

0

.blueFont{
    color: grey;
}
 

anonymous

0

final String str_delete = (String) parameters.get("delete");
boolean delete = false;
if (str_delete.equalsIgnoreCase("true")) {
	delete = true;
}
if (str_delete.equalsIgnoreCase("false")) {
	delete = false;
}
 

anonymous

0

// Do not re-throw, because unhandled exceptions may terminate the service
throw;
 

0

# I have no idea how this works, so better not touch it, alright?
print(sum(next({'s':5,'m':7,'l':10}[x[0]] for x in (lambda p:iter(lambda:input(p+' '),...))(f'Pizza {_+1} size? (s/m/l)') if x and x[0] in 'sml') for _ in range(next(int(x) for x in (lambda p:iter(lambda:input(p+' '),...))('# of pizzas?') if x.isdigit()))))
 

anonymous

0

$ArrAlphabet = array(	'A' => false, 
							'B' => false, 
							'C' => false, 
							'D' => false, 
							'E' => false, 
							'F' => false, 
							'G' => false, 
							'H' => false, 
							'I' => false, 
							'J' => false, 
							'K' => false, 
							'L' => false, 
							'M' => false, 
							'N' => false, 
							'O' => false, 
							'P' => false, 
							'Q' => false, 
							'R' => false, 
							'S' => false, 
							'T' => false, 
							'U' => false, 
							'V' => false, 
							'W' => false, 
							'X' => false, 
							'Y' => false, 
							'Z' => false
							);
 

0

Regex cmd = new Regex(@"(.*)",RegexOptions.Compiled);
Match m = cmd.Match(comando.parametros);
			
string mensaje = "";
if (m.Success) 
{
    mensaje = m.Groups[1].Value.Trim();
}