All the sources codespage 14
PHP
June 08, 2016 am30 01:30
#273
$menu2 = array();
foreach ($menu as $i=>$m) {
$menu2[] = $m;
}
$menu = $menu2;
Java
June 07, 2016 am30 01:30
#272
public static final String escapePl(String s){
StringBuffer sb = new StringBuffer();
int n = s.length();
for (int i = 0; i < n; i++) {
char c = s.charAt(i);
switch (c) {
case '?': sb.append("a"); break;
case '?': sb.append("c"); break;
case '?': sb.append("e"); break;
case '?': sb.append("l"); break;
case '?': sb.append("n"); break;
case 'ó': sb.append("o"); break;
case '?': sb.append("s"); break;
case '?': sb.append("z"); break;
case '?': sb.append("z"); break;
case '?': sb.append("A"); break;
case '?': sb.append("C"); break;
case '?': sb.append("E"); break;
case '?': sb.append("L"); break;
case '?': sb.append("N"); break;
case 'Ó': sb.append("O"); break;
case '?': sb.append("S"); break;
case '?': sb.append("Z"); break;
case '?': sb.append("Z"); break;
default: sb.append(c); break;
}
}
return sb.toString();
}
C#
June 06, 2016 am30 01:30
#271
public int VoteCount
{
get { return this.VoteCount; }
set { this.VoteCount= value;}
}
// A property that sets and gets itself. Awesome infinite recursion.