- 1
let container = parentId ? $(document.querySelector(`.js-childrens-${this.dictionaryName}${this.guid}-${parentId}`)) : this.rowsContainer;
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+1
let container = parentId ? $(document.querySelector(`.js-childrens-${this.dictionaryName}${this.guid}-${parentId}`)) : this.rowsContainer;
2019-й год...
−3
$i = 1 + ($data->page - 1) * 200;
Инициализация переменной в одном из шаблонов рендеринга страницы.
0
Обнаружен критический баг в "PHP":
https://habr.com/ru/post/416573/
Полный список лулзов:
https://habr.com/ru/post/438582/
0
// If Purchasing has been initialized ...
if (IsInitialized())
{
if (...)
{
}
// Otherwise ...
else
{
}
}
// Otherwise ...
else
{
}
Код, который в плагине Unity совершает покупку.
О эти полезнейшие комментарии
0
$(document.getElementById("badgeEndDay")).add("background-badge");
$("#badgeEndDay span").css("color", #f5f5f5");
Типичный говнокод, который штампуют js макаки, набраные по рекомендации друзей шефа.
−1
# -- coding: cp866 --
https://github.com/h4ckzard/wpseyes/blob/master/Windows/wpseyes.py
В чём это писалось???
−1
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
int main(void)
{
char a[8], b[8];
char *a_ptr = a+8;
char *b_ptr = b;
printf("a_ptr = %p, b_ptr = %p\n", a_ptr, b_ptr);
if (a_ptr != b_ptr)
{
printf("a_ptr != b_ptr\n");
}
else
{
printf("a_ptr == b_ptr\n");
}
if ((uintptr_t)a_ptr != (uintptr_t)b_ptr)
{
printf("(uintptr_t)a_ptr != (uintptr_t)b_ptr\n");
}
else
{
printf("(uintptr_t)a_ptr == (uintptr_t)b_ptr\n");
}
return EXIT_SUCCESS;
}
Что по-вашему тут происходит?
+1
when {
(defaultCurrency != null) -> {
when {
(currenciesList == null) -> {
currenciesList = mutableListOf(defaultCurrency)
}
(currenciesList?.isEmpty() == true) -> {
currenciesList?.add(defaultCurrency)
}
else -> {
if (currenciesList?.contains(defaultCurrency) == false) {
defaultCurrency = currenciesList?.first()
}
}
}
}
else -> {
when {
((currenciesList == null) || (currenciesList?.isEmpty() == true)) -> {
throw IllegalArgumentException("Default currency and list of currencies from terminal configuration are empty")
}
else -> {
defaultCurrency = currenciesList?.first()
}
}
}
}
Интерн сражается со скобочками.
−3
for (i=1; i<=n-k+1; i++) { for (j=k; j<=n+1-i; j++) printf("%d", j); printf("\n"); k++; n++; } }
Из студенческих лабораторных.
Что делает - догадайтесь сами =)
+3
do debug.getinfo(1).func() end --рекурсия
do debug.getinfo(2).func() end --вылет нахуй интерпретатора 5.3 версии без ошибки.
do debug.getinfo(3).func() end --не существует с таким индексом. Ошибка.