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;
}
}
<img src="../../../../../../../../../../../../../../../../../assets/logo.png" />
const int TWENTY_EIGHT = 28;
var u = "Browser";
if (this.isIPad) {
u = "iPad"
} else {
if (this.isDDGIgnore) {
u = "Ignore"
} else {
if (/seamonkey/.test(x)) {
u = "SeaMonkey"
} else {
if (/iceape/.test(x)) {
u = "Iceape"
} else {
if (/palemoon/.test(x)) {
u = "PaleMoon"
} else {
if (this.isFirefox) {
u = "Firefox"
} else {
if (this.isAndroid) {
u = "Android"
} else {
if (/xbox/.test(x)) {
u = "xBox"
} else {
if (/midori/.test(x)) {
u = "Midori"
} else {
if (/opr/.test(x)) {
u = "Opera"
} else {
if (/maxthon/.test(x)) {
u = "Maxthon"
} else {
if (this.isYandex) {
u = "Yandex"
} else {
if (/vivaldi/.test(x)) {
u = "Vivaldi"
} else {
if (this.isChrome) {
u = "Chrome"
} else {
if (/fennec/.test(x)) {
u = "Fennec"
} else {
if (/epiphany/.test(x)) {
u = "Epiphany"
} else {
if (this.isFirefox) {
u = "Firefox"
} else {
if (/uzbl/.test(x)) {
u = "Uzbl"
} else {
if (this.isEdge) {
u = "Edge"
} else {
if (this.isIE && navigator.platform === "Win64" && !k() && Modernizr.touch && document.documentElement.clientWidth == screen.width) {
u = "IEMetro"
} else {
if (this.isIE) {
u = "IE"
} else {
if (this.isOpera) {
u = "Opera"
} else {
if (this.isIPhone) {
u = "iPhone"
} else {
if (/arora/.test(x)) {
u = "Arora"
} else {
if (this.isSafari) {
u = "Safari"
} else {
if (this.isKonqueror) {
u = "Konqueror"
} else {
if (this.isBlackberry) {
u = "Blackberry"
} else {
if (/phantomjs/.test(x)) {
u = "PhantomJS"
} else {
if (this.isIDevice) {
u = "iOS"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Found when looking at facebook.com code and formatting using google chrome developer tools.
// sleep 150s
for ($a = 0; $a < 150 ; $a++ ) {
sleep(1);
}
protected Int32 Sum(int one, int two)
{
int result;
int tmp;
tmp = one + two;
result = tmp;
return result;
}
Jesus.
<!-- Renders an horizontal line -->
<center>____________________________________________________________________________</center>
.toolbar-menu-tabs > * {
border-left: 1px solid #f0f0f0;
}
.toolbar-menu-tabs > * + * {
/* a lot of stuff here */
}
def absolute_value(value):
if str(value)[0]=='-':
value = -1 * value
return value
else:
return value
if ($act_number)
{
$act_number = $act_number;
}
else
{
throw new Exception("Документ еще не подготовлен.");
}
var show = true;
function toggleShow(){
if(show === true){
show = false;
return show;
}else{
show = true;
return show;
}
}
return show = !show
, dude...
public boolean checkFalse(Boolean bool)
{
if (bool.booleanValue() == Boolean.FALSE.booleanValue())
{
return Boolean.FALSE.booleanValue();
}
else
{
return Boolean.TRUE.booleanValue();
}
}
public bool IsTrue(bool value) {
return value.ToString().length() == 4;
}
dotychczasowyPostep += predkosc * 1;
for module in next_possible_modules:
import math; math.factorial(40000) # approx. a 1 second operation
end_time = start_time + timedelta(minutes=module.duration)