- 1
- 2
- 3
- 4
- 5
546
156546652646
946
46
687
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+135
546
156546652646
946
46
687
+134.6
private bool _isProcessingThreadExited = false;
public bool IsShutDownComplete()
{
if (!_isProcessingThreadExited)
{
// a thread hasnt exited yet
return false;
}
return true;
}
... осталось еще bool на true проверить через ToString().Length > 4 - и это будет верх говнокодерства...
+144
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>lolo</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<style type="text/css">
.top_mnth_block1
{
width:275px;
height:400px;
background:url(http://foreverfree.ru/templates/images/top_month_poster.png) no-repeat 0 0;
}
.top_mnth_block1 p.top_mnth_block1_p
{
margin: 0;
padding: 62px 40px 0;
height: 300px;
overflow: hidden;
color: #fdc;
}
</style>
</head>
<body>
<div class="top_mnth_block1">
<p class="top_mnth_block1_p">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam eu dui nec elit aliquam convallis. Donec a massa. In condimentum eros id enim. Phasellus sed libero. Duis ac lacus. In turpis felis, aliquam vitae, lacinia quis, egestas fermentum, lorem. In vulputate sem et lectus. Curabitur euismod, nunc a condimentum condimentum, odio mauris ultricies erat, quis vestibulum enim ante non elit. Phasellus sollicitudin, nisi vestibulum mollis consequat, metus nisl sollicitudin dui, posuere cursus tortor lectus vitae sem. Mauris semper dui sed velit. Aliquam fringilla sem ac eros. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Quisque quis nisl a neque pharetra tristique. Fusce tellus diam, convallis sit amet, ullamcorper et, euismod et, urna. Curabitur quis justo. Proin leo. Nulla nec ipsum non leo suscipit egestas. Morbi ut felis. Aliquam erat volutpat. Sed nulla urna, tristique eget, suscipit a, sollicitudin ut, purus. Duis tristique, neque sed ullamcorper elementum, enim massa rutrum massa, id aliquam elit ante a dolor. Pellentesque elementum mauris ac nunc. Proin id eros. Ut pharetra eros sit amet purus. Phasellus convallis sem at tellus. Quisque eu nunc.</p>
</div>
</body>
</html>
Скриншот:
http://i42.tinypic.com/2q2mz3c.png
+150
if ($d != "".(double)$d)
Говорят, что таким скриптом можно проверять данные когда принимаешь из из поля. Чтобы никто плохого не смог закинуть!
−101
on (release) {
gotoAndStop(_currentframe + (4 - _currentframe%10));
//...
}
Переход на четвертый кадр с начала той десятки кадров, где сейчас находимся
(ну вот такой комментарий)
−396.7
var i=0;
i = Math.abs(--i);
Вот такую фишку как-то замутил. А всего-то счетчик, где i меняет значения 0-1-0-1-0-...
+146
#import "Hehe.h"
@implementation Hehe
- (IBAction)click {
[textArea setText:(@"Hello World!")];
}
@end
Objective-C =) Помойму самый красивый ейзык =)
+128.2
public static string ValidateEmail(string Email)
{
try
{
if (Email.Trim() == string.Empty)
{
return "Empty Parameter - Email";
}
}
catch
{
return "Empty Parameter - Email";
}
return null;
}
+151
<?
function br($text)
{
return (str_replace(Array('"',chr(13).chr(10),"\n"),Array(""","<br>","<br>"),($text)));
}
?>
nl2br
+236
evalLOG:
JB kod.7, log8
JB kod.6, log7
JB kod.5, log6
JB kod.4, log5
JB kod.3, log4
JB kod.2, log3
JB kod.1, log2
JB kod.0, log1
Mov log, #0
JMP exiteval
log8:
Mov log, #8
JMP exiteval
log7:
Mov log, #7
JMP exiteval
log6:
Mov log, #6
JMP exiteval
log5:
Mov log, #5
JMP exiteval
log4:
Mov log, #4
JMP exiteval
log3:
Mov log, #3
JMP exiteval
log2:
Mov log, #2
JMP exiteval
log1:
Mov log, #1
exiteval:
Ret
Нахождение логарифма восьмибитного числа с точностью до целых на ассемблере x51.