- 1
- 2
... std::bind(&decltype(x)::bar, foo, _1);
... std::bind(&decltype(*foo.operator->())::bar, foo.operator->(), _1);
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+10
... std::bind(&decltype(x)::bar, foo, _1);
... std::bind(&decltype(*foo.operator->())::bar, foo.operator->(), _1);
С сайта, имя которого можно не называть.
+140
Несколько дней назад я просил помочь мне положить сайт vbbook.ru.
Если честно, когда я писал это сообщение, не рассчитывал, что кто-то серьезно к этому отнесется.
Но...
Кто-то местный положил сайт почти на 4 дня!! Я в шоке! Спасибо! Я преклоняюсь пред Вашим величием! )
.
+147
Куда пропадают мои г-коды?
+122
Привет, посетите наш сайт [color=red]yadelphi.ru[/color]!
+144
class Model_Task extends Model_Base {
const STATUS_CHECK = 0;
const STATUS_REWORK = 1;
const STATUS_COMPLETED = 2;
const STATUS_INVALID = 99999;
...
Видимо чтобы всегда последним был в случае чего...
+9
void SillyThread::run()
{
forever
{
// ... a test ...
}
}
void CrazyThread::run()
{
forever
{
if(qrand() % 2 == 0)
{
// ... a test ...
}
if(qrand() % 2 == 0)
{
// ... a test ...
}
if(qrand() % 2 == 0)
{
// ... a test ...
}
if(qrand() % 2 == 0)
{
// ... a test ...
}
if(qrand() % 2 == 0)
{
// ... a test ...
}
if(qrand() % 2 == 0)
{
// ... a test ...
}
if(qrand() % 2 == 0)
{
// ... a test ...
}
if(qrand() % 2 == 0)
{
// ... a test ...
}
if(qrand() % 2 == 0)
{
// ... a test ...
}
}
}
не совсем говно, но имена и структука прикололи. из кода стресс-теста PDF библиотеки poppler.
+152
function unix_timestamp_to_human ($timestamp = "", $format = 'D d M Y - H:i:s')
{
if (empty($timestamp) || ! is_numeric($timestamp)) $timestamp = time();
return ($timestamp) ? date($format, $timestamp) : date($format, $timestamp);
}
$unix_time = "1251208071";
echo unix_timestamp_to_human($unix_time); //Return: Tue 25 Aug 2009 - 14:47:51
Я всё правильно понял, код воняет?
+130
throw new GnuPGException(String.Format("An error occurred while trying to execute command {0}.", command, exp));
+64
/**
* @return the timeout from the URL, in milliseconds
*/
private static long timeout(Properties props)
Из драйвера JDBC PostgreSQL.
+131
foreach (var oi in order.Items)
{
if (oi.Offer.Name == "BRNCoreDigTrial" || oi.Offer.Name == "BRNCoreDig1Pay" || oi.Offer.Name == "BRNDigUpgrade5pay" || oi.Offer.Name == "BRNDigUpgrade1Pay"
|| oi.Offer.Name == "BRN04StdDIG1Pay" || oi.Offer.Name == "BRN04StdDIG3Pay" || oi.Offer.Name == "BRNCoreDig1PayOld" || oi.Offer.Name == "BRNCoreDigTrialOld"
|| oi.Offer.Name == "BRN04DlxDIG1Pay" || oi.Offer.Name == "BRN04DlxDIG3Pay" || oi.Offer.Name == "BRN04UltDIG1Pay" || oi.Offer.Name == "BRN04UltDIG3Pay")
{
isDigital = true;
break;
}
}