- 1
- 2
# ugh
task = task.task.task
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
−87
# ugh
task = task.task.task
http://programmingisterrible.com/post/50285403468/a-lifetime-of-terrible-code
+138
Control authorizationPanel= iddbd
.Controls.Cast<Control>().Where(x => x.Name == "panelMaxim").FirstOrDefault()
.Controls.Cast<Control>().Where(x => x.Name == "panelInternetB").FirstOrDefault()
.Controls.Cast<Control>().Where(x => x.Name == "panelPassiveIB").FirstOrDefault()
.Controls.Cast<Control>().Where(x => x.Name == "panelPhone").FirstOrDefault();
не, ну а как его еще достать? У нас это квест такой на работе - "Найди контрол" называется
+129
com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState
Класс из состава JDK 6.
+156
/* @component Phoca Component
* @copyright Copyright (C) Jan Pavelka www.phoca.cz
*/
protected function getLabel() {
echo '<div class="clearfix"></div>';
return parent::getLabel();
echo '<div class="clearfix"></div>';
}
Это диагноз...
+128
http://rghost.ru/51035531
Новый бот для минусования (запускать на виртуалке)
Описание такое, чтобы отпугнуть хомячье.
Новый бот для минусования.
+119
Well, there were other factors in play there. htmlspecialchars was a
very early function. Back when PHP had less than 100 functions and the
function hashing mechanism was strlen(). In order to get a nice hash
distribution of function names across the various function name lengths
names were picked specifically to make them fit into a specific length
bucket. This was circa late 1994 when PHP was a tool just for my own
personal use and I wasn't too worried about not being able to remember
the few function names.
-Rasmus
http://news.php.net/php.internals/70691
+166
if (substr(json_encode($row['list']), 0, 1) == '[') {
Такой вот аналог is_array()
−163
CREATE TABLE [dbo].[PPLS2BILLS_SRCO_MESAGE] (
[DOCUMENT] [char] (8) COLLATE Ukrainian_CI_AI_KS_WS NULL ,
[Nom_Document] [int] NULL ,
[Kol_Reis_In_Docum] [int] NULL ,
[Cancel_Kol_Reis_Doc] [int] NULL ,
[Greate_Date_Docum] [datetime] NULL ,
[Flag_Out_EC] [bit] NULL
) ON [PRIMARY]
именуй, не именуй ...
+149
if ($result->fetch()) {
return $result->get('num_flags');
}
else {
return 666;
}
Верующий программист :)
+141
if (connfailed) {
KSOCKET_CALLBACK(so, disconnected, error);
} else {
KSOCKET_CALLBACK(so, connectfailed, error);
}
https://github.com/joyent/illumos-joyent/blob/master/usr/src/uts/common/fs/sockfs/socknotify.c