- 1
- 2
- 3
- 4
if (x>13)or(x<13)or(x=13) then begin writeln('введено невероное значение X');halt end else begin
//Расчёт уравнения
..........
end;
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+92
if (x>13)or(x<13)or(x=13) then begin writeln('введено невероное значение X');halt end else begin
//Расчёт уравнения
..........
end;
в лабе в студента увидел o_O
конечно он получил 2 за лабу
но ка пример какокода супер
+165
if (evt.keyCode == 13)
evt.keyCode = 9
Нашел на работе. Вообще, оно только для чтения, но в IE почему то работает.
+144
говнослово:
а между прочим - сегодня узнал случайно - оказывается, неделю назад ГК.ру #2 исполнился год!
хоть с запозданием, но поздравляю, тов. Страйкера и всех остальных говноюзеров )
http://habrahabr.ru/blogs/i_am_advertising/66701/
+153
void Text::redraw()
{
// text_ имеет тип std::wstring
context_->getCanvas()->DrawString(text_.c_str(), -1, params.font(), rectangle, textStyle().stringFormatParams().stringFormat(), textStyle().brushParams().brush());
}
Совсем небольшое несильное говнецо. Просто был удивлен, что за долгое время это в первый раз седня спалил, хотя в проекте таких какашушелек >9000 использований. Соответственно из-за количества использований получается нормальный такой себе говнокод.
+96
[IMG]http://i9.fastpic.ru/big/2010/0816/9f/a3d5a2c8a4229835a1fca9dd79fca29f.jpg[/IMG]
4 поне Апокалипсиса
+110
// At the maximum, no match found
if (j >= cmax)
return false;
// Okay, must try one more atom
if (!atom.match(matcher, i, seq))
return false;
// If we haven't moved forward then must break out
if (i == matcher.last)
return false;
if (type == GREEDY)
return match0(matcher, i, j, seq);
else if (type == LAZY)
return match1(matcher, i, j, seq);
else
return match2(matcher, i, j, seq);
to be continued....
+115
static final class Single extends Node {
Node dup(boolean not) {
if (not)
return new NotSingle(ch);
else
return new Single(ch);
}
boolean study(TreeInfo info) {
info.minLength++;
info.maxLength++;
return next.study(info);
}
static final class NotSingle extends Node {
Node dup(boolean not) {
if (not)
return new Single(ch);
else
return new NotSingle(ch);
}
boolean study(TreeInfo info) {
info.minLength++;
info.maxLength++;
return next.study(info);
}
}
static final class SingleA extends Node {
Node dup(boolean not) {
if (not)
return new NotSingleA(ch);
else
return new SingleA(ch);
}
boolean study(TreeInfo info) {
info.minLength++;
info.maxLength++;
return next.study(info);
}
}
static final class NotSingleA extends Node {
int ch;
NotSingleA(int n) {
ch = ASCII.toLower(n);
}
Node dup(boolean not) {
if (not)
return new SingleA(ch);
else
return new NotSingleA(ch);
}
boolean study(TreeInfo info) {
info.minLength++;
info.maxLength++;
return next.study(info);
}
}
static final class Ctype extends Node
Node dup(boolean not) {
if (not) {
return new NotCtype(ctype);
} else {
return new Ctype(ctype);
}
}
boolean study(TreeInfo info) {
info.minLength++;
info.maxLength++;
return next.study(info);
}
}
далее идут
static final class SingleU extends Node {
static final class NotCtype extends Node {
static final class NotSingleU extends Node {
c очевидно какими методами внутри
суровое ООП, главное что это не школьная поделка, а серъезнейший продукт
продолжение #3976 #3975 #3940
+167
/**
* Функция умирания
*/
public static function ending()
{
die;
}
Нашел в одном из классов волшебный метод ))
+167
if($pass == $pswd)
{
//Выполнение запросов...
}
else
{
header('location: ./index.html');
if(empty($pass))
{
header('location: ./index.html');
}
if(empty($pswd))
{
header('location: ./index.html');
}
if(empty($pass) && empty($pswd))
{
header('location: ./index.html');
}
if(empty($login) or empty($pswd))
{
header('location: ./index.html');
}
}
//Код вывода формы.
+142
void InitializeComponent()
{
ResizeRedraw = true;
this.Paint += new PaintEventHandler(Do);
}
void Do(object sender, PaintEventArgs e)
{
object[] ob = { e.Graphics };
new Thread(Update).Start(ob);
}
void Update(Graphics e)
{
PointF[] pp = new PointF[this.Width];
for (int i = 0; i < this.Width; i++)
{
pp[i].X = i;
pp[i].Y = this.Height / 2;
}
e.DrawCurve(new Pen(Color.Black, 3), pp);
}