- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
<table width="630" border="1" class="main">
<!-- Распирай. Властвуй. Унижай. -->
<table border="1" width="800" class="main">
<tr align="center"><td class="tds">
....
</td></tr>
</table></table>
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+118
<table width="630" border="1" class="main">
<!-- Распирай. Властвуй. Унижай. -->
<table border="1" width="800" class="main">
<tr align="center"><td class="tds">
....
</td></tr>
</table></table>
Цель была- просто впихнуть широкую таблицу, когда "голова", и кусок основной таблицы сайта (то, что до "распирай") отдаются скриптом. Дабы не вносить существенных поправок в движковую часть, и страницы- пришлось наговнокодить.
+130
* g o a t s e x * g o a t s e x * g o a t s e x *
g g
o / \ \ / \ o
a| | \ | | a
t| `. | | : t
s` | | \| | s
e \ | / / \\\ --__ \\ : e
x \ \/ _--~~ ~--__| \ | x
* \ \_-~ ~-_\ | *
g \_ \ _.--------.______\| | g
o \ \______// _ ___ _ (_(__> \ | o
a \ . C ___) ______ (_(____> | / a
t /\ | C ____)/ \ (_____> |_/ t
s / /\| C_____) | (___> / \ s
e | ( _C_____)\______/ // _/ / \ e
x | \ |__ \\_________// (__/ | x
* | \ \____) `---- --' | *
g | \_ ___\ /_ _/ | g
o | / | | \ | o
a | | / \ \ | a
t | / / | | \ |t
s | / / \__/\___/ | |s
e | / | | | |e
x | | | | | |x
* g o a t s e x * g o a t s e x * g o a t s e x *
+29
//thirteen
Cluster cl;
Cluster empty;
I--;
if(distances.size()){
for (int i = 0; i < (Lmax < distances.size() ? Lmax : distances.size()); ++i){
cl.X(( clusters.at(distances.at(i).first.first).X()*clusters.at(distances.at(i).first.first).Points().size() + clusters.at(distances.at(i).first.second).X()*clusters.at(distances.at(i).first.second).Points().size())/(clusters.at(distances.at(i).first.first).Points().size() + clusters.at(distances.at(i).first.second).Points().size()));
cl.Y(( clusters.at(distances.at(i).first.first).Y()*clusters.at(distances.at(i).first.first).Points().size() + clusters.at(distances.at(i).first.second).Y()*clusters.at(distances.at(i).first.second).Points().size())/(clusters.at(distances.at(i).first.first).Points().size() + clusters.at(distances.at(i).first.second).Points().size()));
if(clusters.at(distances.at(i).first.second).Number() != -1 && clusters.at(distances.at(i).first.first).Number() != -2){
cl.Points() = clusters.at(distances.at(i).first.second).Points();
clusters.at(distances.at(i).first.second) = cl;
clusters.at(distances.at(i).first.second).Number(-1);
for (std::vector<Point>::iterator j = clusters.at(distances.at(i).first.first).Points().begin(); j != clusters.at(distances.at(i).first.first).Points().end(); ++j)
{
clusters.at(distances.at(i).first.second).Points().push_back(*j);
}
clusters.at(distances.at(i).first.first) = empty;
n_c--;
}
}
for (std::vector<Cluster>::iterator i = clusters.begin(); i != clusters.end(); ++i){
if(i->Number() == -2){
i = clusters.erase(i);
}
i->Number(i - clusters.begin());
if(I)i->Points().clear();
if(i == clusters.end())break;
}
}
//fourteen
Кусок алгоритма isodata
+150
//
getMode: function(nMode) {
switch (nMode) {
case this.MODES.LEFT_BOOKEND:
return this.aModes[nMode];
case this.MODES.RIGHT_BOOKEND:
return this.aModes[nMode];
case this.MODES.BOTH_BOOKENDS:
return this.aModes[nMode];
case this.MODES.NONE:
default:
return this.aModes[this.MODES.NONE];
}
},
Наверное уже боян, но вот же он, опять!
https://github.com/scirelli/ExtjsBreadCrumbs/blob/master/js/ux/breadCrumbs.js
+63
//START ADDING CODE HERE TODAY. !!
Прямо посреди класса
+133
try
HeapSize += 268435456 -- +100500 могучих байт в кучу во имя производительности
catch (
try
HeapSize += 67108864 -- жалкая попытка добавить хоть что - то
catch
GIMS.Core.SystemMgr.ThrowError "init error" "Cannot extend the heap :(" -- сглотнуть обиду, поднасрав в лог
)
GC, you shall not pass!
Первая ступень попыток ускорить тормозной MAXScript
+162
switch ($isBlank) {
case true:
$seconds_to_cache = 1;
break;
case false:
$seconds_to_cache = 100000000;
break;
}
еще default: не хватает для полной красоты...
−105
if(ignoreSelection?[atml extraCharges]!=NULL:[atml extraCharges]&&![atml selectedAttribute])
Лесенки для слабаков!!
+132
if (dest_lstat_ok)
{
if (S_ISDIR (dest_stats.st_mode))
{
error (0, 0, _("%s: cannot overwrite directory"), quote (dest));
return false;
}
if (interactive)
{
fprintf (stderr, _("%s: replace %s? "), program_name, quote (dest));
if (!yesno ())
return true;
remove_existing_files = true;
}
if (backup_type != no_backups)
{
dest_backup = find_backup_file_name (dest, backup_type);
if (rename (dest, dest_backup) != 0)
{
int rename_errno = errno;
free (dest_backup);
dest_backup = NULL;
if (rename_errno != ENOENT)
{
error (0, rename_errno, _("cannot backup %s"), quote (dest));
return false;
}
}
}
}
if (relative)
source = rel_source = convert_abs_rel (source, dest);
ok = ((symbolic_link ? symlink (source, dest)
: linkat (AT_FDCWD, source, AT_FDCWD, dest,
logical ? AT_SYMLINK_FOLLOW : 0))
== 0);
Coreutils такой coreutils
−167
МассивКоэффициентов = Новый Структура;
-------------------------------------------------------------------------------------------------------
Если Элемент.Имя = "КнопкаПерсонал" тогда
СписокВидоврасчета = 1;
иначе
СписокВидоврасчета = 2;
конецЕсли;
"Принцип наименьшего удивления" при выборе имен переменных в работе