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;
  }
}
By Anonymous, 2015-07-22 14:40:25
        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.

By jcubic, 2017-01-03 18:38:30
#62 C# +202
protected Int32 Sum(int one, int two)
{
    int result;
    int tmp;
    
    tmp = one + two;
    result = tmp;
    return result;
}

Jesus.

By Anonymous, 2016-05-29 17:19:14
const int TWENTY_EIGHT = 28;
By adeward, 2017-09-14 10:12:28
<img src="../../../../../../../../../../../../../../../../../assets/logo.png" />
By Anonymous, 2015-07-22 14:46:50
// sleep 150s
for ($a = 0; $a < 150 ; $a++ ) { 
      sleep(1);
}
By Anonymous, 2015-07-22 14:42:11
def absolute_value(value):
    if str(value)[0]=='-':
        value = -1 * value
        return value
    else:
        return value
By Random student of algorithms., 2017-12-12 04:32:36
#64 :) PHP +112
        if ($act_number)
        {
        	$act_number = $act_number;
        }
        else
        {
        	throw new Exception("Документ еще не подготовлен.");
        }
By wata5h1, 2016-07-07 17:09:32
public boolean checkFalse(Boolean bool)
{
  if (bool.booleanValue() == Boolean.FALSE.booleanValue())
  {
    return Boolean.FALSE.booleanValue();
  }
  else
  {
    return Boolean.TRUE.booleanValue();
  }
}
By Anonymous, 2017-12-12 17:35:17
If Not task.PlannedEffort Is Nothing AndAlso task.PlannedEffort > 0 AndAlso Not _context.SystemSettingHelper.GetSystemSetting(SystemSetting.StatusInProgress).Split(","c).Any(Function(x) x.Trim = origIssue.fields.status.name.Trim()) AndAlso Not _context.SystemSettingHelper.GetSystemSetting(SystemSetting.StatusDone).Split(","c).Any(Function(x) x.Trim = origIssue.fields.status.name.Trim()) Then
 ' ...
End If

// TODO: remember to buy a second screen

By Anonymous, 2017-03-16 14:10:08
var show = true;

function toggleShow(){
    if(show === true){
        show = false;
        return show;
    }else{
        show = true;
        return show;
    }
}

return show = !show, dude...

By Anonymous, 2017-07-14 09:50:57
for module in next_possible_modules: 
  import math; math.factorial(40000) # approx. a 1 second operation 
  end_time = start_time + timedelta(minutes=module.duration) 
By Anonymous, 2017-12-12 20:23:37
#139 HTML +52
<img src="../../../../../../../../../../../../../../../../../assets/logo.png" /> 
By Anonymous, 2017-12-12 20:59:00
function focused(evt, errors) {
	let form = evt.target

	const output = errors.map((error)=> {

		// Find first component with error on form and set focus to it

		let focusedInput = (Object.keys(error) == "phonebookId") ? Object.keys(error) :
			(Object.keys(error) == "phonebook_str") ? Object.keys(error) :
				(Object.keys(error) == "message") ? Object.keys(error) :
					(Object.keys(error) == "image") ? Object.keys(error) :
						(Object.keys(error) == "buttonLink") ? Object.keys(error) :
							(Object.keys(error) == "messageSms") ? Object.keys(error) : false
		return focusedInput.shift()
	})

	const selector = output.shift()
	form.querySelector('[id="' + selector + '"]').focus()

	return selector
}

What can I say... If you plan to work with freelancers with low rate then you should be ready to find it in them code :)

By Ya, 2016-10-02 12:16:46
bool IsEven(int i)
{
    if (i < 0)
        i *= -1;
        
    while(i > 0)
        i -= 2;
    
    if (i == -1)
        return false;
    else
        return true;
}

An is even function that is technically correct, but a really bad approach.

By Chris Mallery, 2017-12-12 17:34:42