- 1
$(function(){function n(){return!1}document.ondragstart=n,document.onselectstart=n,document.oncontextmenu=n,document.oncopy=n,document.onpaste=n});
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
−2
$(function(){function n(){return!1}document.ondragstart=n,document.onselectstart=n,document.oncontextmenu=n,document.oncopy=n,document.onpaste=n});
https://pikabu.ru/story/kak_kopirovat_tekst_v_formyi_gibddru_ili _na_vsyakuyu_khitruyu_zhopu_naydyotsya_k her_s_vintom_6156200
Программист нашёл как вставлять текст в заблокированную форму.
−100
Давайте затронем тему вампиризма.
Вампиры сосут кровь - это общеизвестно. А ежели, положим, я сосу не кровь, а хуи - вампир ли я?
+1
#include <stdio.h>
int main() {
switch (3) {
for (int i = 3; i > 0; --i) {
case 3: printf("%d ololo?\n", i);
}
}
return 0;
}
О сколько нам открытий чудных
Готовит просвящения духх...
Угодайте, что там: https://ideone.com/zbOzGZ
+1
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 1"), inputs.input1, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 2"), inputs.input2, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 3"), inputs.input3, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 4"), inputs.input4, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 5"), inputs.input5, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 6"), inputs.input6, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 7"), inputs.input7, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 8"), inputs.input8, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 9"), inputs.input9, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 10"), inputs.input10, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 11"), inputs.input11, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 12"), inputs.input12, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 13"), inputs.input13, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 14"), inputs.input14, 0, -1)
imgui.InputInt(u8("Напиши сюда модель объекта которого ты хочешь найти -- 15"), inputs.input15, 0, -1)
зачем цикл если есть ctrl+c и ctrl+v
−2
int[][] arr = new int[3][];
arr[0] = new int[3];
arr[1] = new int[2];
arr[2] = new int[5];
arr[0][2] = 16;
arr[1][0] = 45;
arr[2][4] = 99;
foreach (int item in arr[0])
Console.Write(item + " ");
Console.WriteLine();
foreach (int item in arr[1])
Console.Write(item + " ");
Console.WriteLine();
foreach (int item in arr[2])
Console.Write(item + " ");
Этот foreach просто божественен
0
override fun showThemeError() {
Toast.makeText(activity, "Заполните тему", Toast.LENGTH_SHORT).show()
}
override fun showMessageError() {
Toast.makeText(activity, "Напишите сообщение", Toast.LENGTH_SHORT).show()
}
override fun showRatingError() {
Toast.makeText(activity, "Поставьте оценку", Toast.LENGTH_SHORT).show()
}
override fun showSendError() {
Toast.makeText(activity, "Ошибка при отправке сообщения", Toast.LENGTH_SHORT).show()
}
Релизный проект который достался на доработку((((
Android/kotlin
0
А когда исправят "1. CSRF VERIFICATION ERROR"?
Или только у меня так?
+2
#include <bits/stdc++.h>
using namespace std;
int main(){
int x1,y1,x2,y2;
string xy1,xy2;
cin>>xy1>>xy2;
if (xy1[0]=='A')x1=1;
if (xy1[0]=='B')x1=2;
if (xy1[0]=='C')x1=3;
if (xy1[0]=='D')x1=4;
if (xy1[0]=='E')x1=5;
if (xy1[0]=='F')x1=6;
if (xy1[0]=='G')x1=7;
if (xy1[0]=='H')x1=8;
if (xy1[1]=='1')y1=1;
if (xy1[1]=='2')y1=2;
if (xy1[1]=='3')y1=3;
if (xy1[1]=='4')y1=4;
if (xy1[1]=='5')y1=5;
if (xy1[1]=='6')y1=6;
if (xy1[1]=='7')y1=7;
if (xy1[1]=='8')y1=8;
if (xy2[0]=='A')x2=1;
if (xy2[0]=='B')x2=2;
if (xy2[0]=='C')x2=3;
if (xy2[0]=='D')x2=4;
if (xy2[0]=='E')x2=5;
if (xy2[0]=='F')x2=6;
if (xy2[0]=='G')x2=7;
if (xy2[0]=='H')x2=8;
if (xy2[1]=='1')y2=1;
if (xy2[1]=='2')y2=2;
if (xy2[1]=='3')y2=3;
if (xy2[1]=='4')y2=4;
if (xy2[1]=='5')y2=5;
if (xy2[1]=='6')y2=6;
if (xy2[1]=='7')y2=7;
if (xy2[1]=='8')y2=8;
if ((abs(x1-x2)==1&&abs(y1-y2)==0)||
(abs(x1-x2)==0&&abs(y1-y2)==1)||
(abs(x1-x2)==1&&abs(y1-y2)==1)||
(y1==y2||x1==x2||abs(x1-x2)==abs(y2-y1))||
(y1==y2||x1==x2)||
(abs(x1-x2)==abs(y2-y1))||
(abs(x1-x2)==1&&abs(y1-y2)==2)||
(abs(x1-x2)==2&&abs(y1-y2)==1)||
(x1==x2&&((y1==2&&y2==y1+2)||(y1>=2&&y2==y1+1))))
{
//king
if(abs(x1-x2)==1&&abs(y1-y2)==0)
cout<<"King\n";
else if(abs(x1-x2)==0&&abs(y1-y2)==1)
cout<<"King\n";
else if(abs(x1-x2)==1&&abs(y1-y2)==1)
cout<<"King\n";
//queen
if(y1==y2||x1==x2||abs(x1-x2)==abs(y2-y1))
cout<<"Queen\n";
//rook
if(y1==y2||x1==x2)
cout<<"Rook\n";
//bishop
if (abs(x1-x2)==abs(y2-y1))
cout<<"Bishop\n";
//knight
if(abs(x1-x2)==1&&abs(y1-y2)==2)
cout<<"Knight\n";
else if(abs(x1-x2)==2&&abs(y1-y2)==1)
cout<<"Knight\n";
//pawn
if(x1==x2&&((y1==2&&y2==y1+2)||(y1>=2&&y2==y1+1)))
cout<<"Pawn\n";
}
else cout<<"Nobody";
}
Нашел его в старом добром ACMP и он работает
0
https://r.mradx.net/img/02/039F10.png
Даже такой гигант, как "Mail.Ru", использует "SQL". А вы продолжайте подтекать от "NoSQL"-говна.
0
SELECT *
FROM
(SELECT CASE
WHEN (CASE
WHEN datediff(DAY,date,
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date))/365 = 0 THEN 'Y y.,'
ELSE cast((datediff(DAY,date,
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date))/365) AS varchar(20)) + ','
END + CASE
WHEN (datediff(DAY,date,
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date))/30 - (datediff(DAY,date,
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date))/365) * 12) = 0 THEN 'M m.'
ELSE cast((datediff(DAY,date,
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date))/30 - (datediff(DAY,date,
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date))/365) * 12) AS varchar(20))
END) = 'Y y.,M m.' THEN ''
ELSE (CASE
WHEN datediff(DAY,date,
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date))/365 = 0 THEN 'Y y.,'
ELSE cast((datediff(DAY,date,
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date))/365) AS varchar(20)) + ','
END + CASE
WHEN (datediff(DAY,date,
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date))/30 - (datediff(DAY,date,
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date))/365) * 12) = 0 THEN 'M m.'
ELSE cast((datediff(DAY,date,
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date))/30 - (datediff(DAY,date,
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date))/365) * 12) AS varchar(20)) END)
END AS 'Возраст',
date AS date1,
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date) AS date2
FROM Battles AS P1
WHERE
(SELECT top (1) date
FROM Battles AS P2
WHERE P2.date > P1.date
ORDER BY P2.date) IS NOT NULL) AS t
UNION
(SELECT CASE
WHEN (CASE
WHEN datediff(DAY,date,CONVERT (date, GETDATE()))/365 = 0 THEN 'Y y.,'
ELSE cast((datediff(DAY,date,CONVERT (date, GETDATE()))/365) AS varchar(20)) + ','
END + CASE
WHEN (datediff(DAY,date,CONVERT (date, GETDATE()))/30 - (datediff(DAY,date,CONVERT (date, GETDATE()))/365) * 12) = 0 THEN 'M m.'
ELSE cast((datediff(DAY,date,CONVERT (date, GETDATE()))/30 - (datediff(DAY,date,CONVERT (date, GETDATE()))/365) * 12) AS varchar(20))
END) = 'Y y.,M m.' THEN ''
ELSE (CASE
WHEN datediff(DAY,date,CONVERT (date, GETDATE()))/365 = 0 THEN 'Y y.,'
ELSE cast((datediff(DAY,date,CONVERT (date, GETDATE()))/365) AS varchar(20)) + ','
END + CASE
WHEN (datediff(DAY,date,CONVERT (date, GETDATE()))/30 - (datediff(DAY,date,CONVERT (date, GETDATE()))/365) * 12) = 0 THEN 'M m.'
ELSE cast((datediff(DAY,date,CONVERT (date, GETDATE()))/30 - (datediff(DAY,date,CONVERT (date, GETDATE()))/365) * 12) AS varchar(20))
END)
END, date, CONVERT (date, GETDATE())
FROM Battles AS T1
WHERE
(SELECT top (1) date FROM Battles AS T2
WHERE T2.date > T1.date ORDER BY T2.date) IS NULL );
BDcorabli@ex5