- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
do
echo $fun
$fun = $sand + $sand
$sand = $sand +1
echo $sand."is not".$var
$var = $sand + $fun
$deer = 23
while($deer==23)
if($var==445)
{
$fun==2
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+147
do
echo $fun
$fun = $sand + $sand
$sand = $sand +1
echo $sand."is not".$var
$var = $sand + $fun
$deer = 23
while($deer==23)
if($var==445)
{
$fun==2
}
Из моих наработок для BrowserFucker
+161
// yes, this code is a bit crazy, but it works and we have tests to prove it!
// this piece should be kept in sync with the traversal in $broadcast
if (!(next = (current.$$childHead ||
(current !== target && current.$$nextSibling)))) {
while(current !== target && !(next = current.$$nextSibling)) {
current = current.$parent;
}
}
Из исходников AngularJS
+61
#include <iostream>
#include <iomanip>
using std::boolalpha;
using std::cout;
using std::endl;
template <class N>
bool getbit(N var, int bit)
{
size_t bsz = sizeof(N)*8;
return ((bsz>=bit)?((var>>bit)%2):(0));
}
template <class N>
bool bitCompare(N a, N b)
{
size_t bsz = sizeof(N)*8;
for (size_t i = 0; i < bsz; i++)
{
bool gba = getbit(a, i);
bool gbb = getbit(b, i);
if (gba != gbb)
{
return false;
}
}
return true;
}
int main(int argc, char* argv[])
{
cout << "100500 == 100500:" << boolalpha << bitCompare(100500, 100500) << endl;
cout << "100500 == 9000: " << bitCompare(100500, 9000) << endl;
cout << "'H' == 'H': " << bitCompare('H', 'H') << endl;
cout << "'H' == 'K': " << bitCompare('H', 'K') << endl;
return 0;
}
Байтоебство проходили... Дамы и господа! Встречайте битоебство!
+156
if (l > 0) l += (1 - l) * l;
else if (l < 0) l *= 1 - (- l);
+65
grade : 100 >= "A" >= 90 > "B" >= 80 > "C" >= 70 > "D" >= 60 > "E" >= 0;
Кто-нибудь догадается, что сие может значить? :)
−407
//
// @property (nonatomic, strong) NSString *name; @property (nonatomic, strong) NSString *name;.m
// Govnocode
//
// Created by Khrishna on 28/03/14.
// Copyright (c) 2014 Khrishna Ravi. All rights reserved.
//
#import "@property (nonatomic, strong) NSString *name; @property (nonatomic, strong) NSString *name;.h"
@implementation _property__nonatomic__strong__NSString__name___property__nonatomic__strong__NSString__name_
@end
Безжалостные русские индусы
+143
http://prntscr.com/34tyg5
wat?
PS, капча 2882.
+152
public function validateItem() {
$orderPricesSum = null;
if($orderPricesSum == null) {
$orderPricesSum = $this->getPricesSum();
}
if($this->minimal && $orderPricesSum < $this->minimal) {
return false;
}
if($this->maximum && $orderPricesSum > $this->maximum) {
return false;
}
return true;
}
$orderPricesSum другой ведь какой-то может быть...
+137
ascdec proc near
mov di,0
mov si,0
xor dx,dx
mov bx,offset buf
add bx,10
mov cx,11
lo0:
dec bx
dec cx
jcxz ex0
mov al,[bx]
cmp al,255
je lo0
lo1:
sub al,30h
push bx
push cx
mov bx,offset deci
xor dx,dx
mov cx,word ptr[bx+2]
mov bx,word ptr[bx]
mov ah,0
call mult32
add di,ax
adc si,dx
mov bx,offset deci
mov ax,[bx]
mov dx,[bx+2]
call multen
mov bx,offset deci
mov [bx],ax
mov [bx+2],dx
pop cx
pop bx
dec bx
dec cx
jcxz ex0
mov al,[bx]
jmp lo1
ex0:
mov ax,di
mov dx,si
test dx,8000h
jz enda
jmp error
enda:
cmp minus,2dh
jne pl1
call ccc
pl1:
ret
ascdec endp
multen proc near
push bx
push cx
mov bx,10
mov cx,0
call mult32
pop cx
pop bx
ret
multen endp
mult32 proc near
push si
push di
push dx
push ax
test dx,8000h
jz ml
call ucc
push dx
push ax
ml:
mov dx,cx
mov ax,bx
test dx,8000h
jz ml0
call ucc
mov bx,ax
mov cx,dx
ml0:
pop ax
pop dx
mov si,0
mov di,0
mul bx ;AX*BX
mov di,ax
mov si,dx
pop ax
mul cx ;AX*CX
add si,ax
pop dx
ucc proc near
dec ax
sbb dx,0
not ax
not dx
ret
ucc endp
Превращение строки в число.
−165
...
Возврат ?(НЕ Запрос.Выполнить().Пустой(),Истина,Ложь);