var query = $("#search-query");
query.click(function() {
  if (query.val() == 'szukaj...') {
     query.val('');
  }
});
By Kadet, 2016-02-14 14:54:32
if HOST == 'AdaLovelace' or HOST == 'vbu' or HOST == 'asus':
    urlpatterns += patterns('',
        (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': MEDIA_ROOT}),
    )
By Kadet, 2016-02-14 16:37:32
#62 C# +300
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 today = new Date(2016, 7, 7)
undefined
> const tomorrow = new Date(2016, 7, 8)
undefined
> tomorrow >= today
true
> today <= tomorrow
true
> today == tomorrow
false
By winek, 2016-05-30 16:08:25
#64 :) PHP +183
        if ($act_number)
        {
        	$act_number = $act_number;
        }
        else
        {
        	throw new Exception("Документ еще не подготовлен.");
        }
By wata5h1, 2016-07-07 17:09:32
private void reset_kolejnosc()
{
	this.kolejnosc_s[0] = 1;
	this.kolejnosc_s[1] = 2;
	this.kolejnosc_s[2] = 3;
	this.kolejnosc_s[3] = 4;
	this.kolejnosc_s[4] = 5;
	this.kolejnosc_s[5] = 6;
	this.kolejnosc_s[6] = 7;
	this.kolejnosc_s[7] = 8;
	this.kolejnosc_s[8] = 9;
	this.kolejnosc_s[9] = 10;
}
By winek, 2016-07-17 00:16:00
.toolbar-menu-tabs > * {
    border-left: 1px solid #f0f0f0;
}

.toolbar-menu-tabs > * + * {
    /* a lot of stuff here */
}
By Anonymous, 2016-07-28 15:58:05
$_POST = $this->db->mres($_POST);
$_SESSION['post'] = $_POST;

$sql = "SELECT id, documento, nombre1, nombre2, apellido1, apellido2 "
        . "FROM usuarios "
        . "WHERE " .
    "REPLACE(" .
        "REPLACE(" .
            "REPLACE(" .
                "REPLACE(telefono,' ','')," .
                "'(','')," .
            "')','')," .
        "'-','') LIKE '%{$searchTel}'";
By Carlos Correa, 2016-09-16 22:11:38
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
//this is a commit!!
trans.Commit();

It doesn't look like it was there because of some changes - someone simply wanted to be double sure he will see the commit there, I guess..

By Vukko, 2016-10-03 15:20:49
someslice := []*string{
    &"fuck",
    &"pointers",
}

for i, value := range someSlice {
    someSlice[i] = &*value
}
By Anonymous, 2016-10-12 19:58:27
var None = null;

if ({{ post.pk }} == None) {
    // reset to draft
    $("#id_status")[0].value = 1;
}
By Anonymous, 2016-11-18 19:08:07
switch ($content) {
    case "vid":
      echo '<iframe width="600" height="450" src="http://www.youtube.com/embed/' . $img . '" frameborder="0" allowfullscreen></iframe>';
      break;
    default:
      if ($height > 0 && $width > 0) {
        echo '<img width="' . $width . '" height="' . $height . '" src="http://szpileczki.com/up/' . $img . '"/>';
      } else {
        if ($kochamto == 1) {
          echo '<img src="http://kocham.to/up/' . $img . '"/>';
        } else {
          echo '<img src="http://szpileczki.com/up/' . $img . '"/>';
        }
      }
      break;
 }

especially if one of them doesn't exist since 2012

By Anonymous, 2016-11-19 14:54:36
        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
checkParameter(elem: boolean): any {
	if(elem) return true;
	return null;
}
By godwhy, 2017-01-26 15:15:03