- 1
- 2
- 3
- 4
- 5
- 6
- 7
function insertOpenTable() {
return "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\" class=\"footnote\">";
}
function insertCloseTable() {
return "</table>";
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+144
function insertOpenTable() {
return "<table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" border=\"0\" class=\"footnote\">";
}
function insertCloseTable() {
return "</table>";
}
http://www.mts.ru/upload/images/script/js.js
+167
function hasclass(e,c){
has=false
for(i=0;i<e.className.split(' ').length;i=i+1)
if( e.className.split(' ')[i]=== c) has= true;
if(has==true){return true;}else{return false;}
}
В лучших традициях говнокода. Оригинальное форматирование сохранено.
+112
//Floating
float k = 0.0001f;
for (float i = 10.9f; i >= -10.9f; i--)
{
i += +1 - k;
e.Graphics.DrawEllipse(new Pen(Color.Green, 5), 15 * (float)Math.Sin(i), 15 * i, 5, 5);
}
Учусь рисовать окружность
+73
progress = progress != null ? progress + "%" : progress;
Да, давно я не смеялся...
+80
if ( obj == null ) {
throw new IllegalArgumentException( "Value cannot be null: " + obj );
}
−168
if request.user.is_superuser:
content["stuff"] = stuff_list
content["content_stuff"] = content_stuff_list
content["domain_url"] = settings.DOMAIN_URL or "http://boo.com"
if request.user.is_superuser:
content["active_hotels"] = Hotel.objects.filter(is_active=True)
долго понимал, так и не понял
+79
this.query = this.query == url.getQuery( ) ? this.query : url.getQuery( );
+113
Guid RespondentId = Guid.NewGuid();
if (RespondentId != Guid.Empty)
−91
fac 1 = 1
fac n = fac (n-1) * n
Вычисления факторила advanced-нубами с луркмора(с) на Haskell
−125
$new_customer = 1 if ($new_customer);
$new_customer = 0 unless ($new_customer);
# запись из весьма не малого инет-магазина.... на perl'е....