- 1
throw new Exception("Унылое говно");
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+18
throw new Exception("Унылое говно");
планируются ли вообще меры по очистке ресурса от унылого говна, дабы поддерживать подборку качественного фекалия? типа, если в минусе более трёх дней, то delete[].
−71.9
// get today's date string as YYYY-MM-DD HH:MM:SS
function getDateTime(){
$datetime = getdate();
$mday = $datetime['mday'];
if ($mday<10){
$mday="0$mday";
}
$mon = $datetime['mon'];
if ($mon<10){
$mon="0$mon";
}
$year = $datetime['year'];
$mhour = $datetime['hours'];
if ($mhour<10){
$mhour="0$mhour";
}
$mmin = $datetime['minutes'];
if ($mmin<10){
$mmin="0$mmin";
}
$msec = $datetime['seconds'];
if ($msec<10){
$msec="0$msec";
}
$dateTime = "$year-$mon-$mday $mhour:$mmin:$msec";
return $dateTime;
}
Китайский код самый беспощадный...
+30
clsLine L = Lines[4][i];
int Ind = Lines[4].IndexOf(L);
−417.7
SELECT FROM Staff
CASE Sex
WHEN 'M' THEN 'МужЫк!'
WHEN 'F' THEN 'Баба'
ELSE 'ЫЫЫыы?'
препод сказал что елсе не будет выполняться изза ограничений целостности базы
+33.5
<script>
function changeLogo(imgLoc){
document.getElementById("module_logo").src = "./site/" + imgLoc + "_logo.jpg";
}
function returnLogo(imgLoc){
document.getElementById("module_logo").src = "./site/" + imgLoc + "_logo.jpg";
}
</script>
0
SparseMatrix<double> mat(rows,cols);
for (int k=0; k<mat.outerSize(); ++k)
for (SparseMatrix<double>::InnerIterator it(mat,k); it; ++it)
{
it.value();
it.row(); // row index
it.col(); // col index (here it is equal to k)
it.index(); // inner index, here it is equal to it.row()
}
Random access to the elements of a sparse object can be done through the coeffRef(i,j) function. However, this function involves a quite expensive binary search. In most cases, one only wants to iterate over the non-zeros elements. This is achieved by a standard loop over the outer dimension, and then by iterating over the non-zeros of the current inner vector via an InnerIterator. Thus, the non-zero entries have to be visited in the same order than the storage order.
0
The stylesheet http://govnokod.ru/media/07be0bfd97ac9918b4a7bacde60881b6.css?files=jquery-ui.css,jip.css,jip/jipCore.css,icons.css,bullets.css,flags.css,langs/javascript.css,langs/python.css,langs/.css,langs/c.css was not loaded because its MIME type, “text/html”, is not “text/css”.
Кто-то обосрался
0
Казалось бы, измненений не много
https://github.com/microsoft/monaco-editor/compare/v0.47.0...v0.48.0-dev-20240319
Но за ними конечно же кроется это
https://github.com/microsoft/vscode/compare/1e790d77f81672c49be070e04474901747115651...33cd6f1001b92a912898996be69b6928eda1a682
Все фронтендеры должны гореть в аду
Где-то здесь поломали рендер. Где, конечно, неясно, эксепшнов никаких нету, просто рисует какую-то эпилепсию вместо текста, но разумеется этот редахтур пихуют повсюду. Как среди этой кучи что-то найти тоже неясно.
Это не код, авгивевы конюшни.
Горите блять в аду
0
import photoshop
photoshop.CreateProgram()
0
// https://tio.run/##jY9PC4JAFMTv@ymGJHFjDc06WUEdugpd1YPomgu2in8oED@7WVpRh@jdZt7vDfNCPUwDeeo6oggZpnXEsS6rSGTzZEuIEvFYSI6D42g5QxbHJa8oogwNPIJ@8kLIKtYm06snJwxq7uoD5VO7R1pcEpFyzaDvsP3u@F/YjyzSgzgHQmoUzeP2bgSujw0ag8FkWDBYDEuGVWu/iFneA2rgWv7gjY@Z9FPWox6rml/yuS54VRcShk3arrsB
#include <stdio.h>
#define FOO(p, offset) do { \
printf("%x\n", &p[-offset]); \
} while(0)
#define BAR(p, offset) do { \
printf("%x\n", p[-offset]); \
} while(0)
int main() {
int a[] = {0, 1, 2, 3, 4, 5};
int *p = &a[3];
FOO(p, 1);
FOO(p, 1u);
BAR(p, 1);
BAR(p, 1u);
return 0;
}