- 1
- 2
- 3
- 4
- 5
- 6
Как вы думаете, чем отличаются эти два параметра в Django?
use_tls: EMAIL_USE_TLS
use_ssl: EMAIL_USE_SSL
ответ в комменте
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
0
Как вы думаете, чем отличаются эти два параметра в Django?
use_tls: EMAIL_USE_TLS
use_ssl: EMAIL_USE_SSL
ответ в комменте
EMAIL_USE_TLS
Whether to use a TLS (secure) connection when talking to the SMTP server
EMAIL_USE_SSL
Whether to use an implicit TLS (secure) connection when talking to the SMTP server
+1
@Override
public String toString() {
return "IndexData{" +
"id='" + id + '\'' +
", regNum='" + regNum + '\'' +
", docType='" + docType + '\'' +
", customerOrg='" + customerOrg + '\'' +
", ownerOrg='" + ownerOrg + '\'' +
", responsibleOrg='" + responsibleOrg + '\'' +
", publishOrg='" + publishOrg + '\'' +
", path='" + path + '\'' +
", zipName='" + zipName + '\'' +
", xmlName='" + xmlName + '\'' +
", fileDate=" + fileDate +
", publishDate='" + publishDate + '\'' +
", info=" + info +
'}';
}
сериализация в json
+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()
}
}
}
}
Интерн сражается со скобочками.