- 1
- 2
- 3
- 4
- 5
#include <string>
std::string greet(){
return "hello world!";
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
0
#include <string>
std::string greet(){
return "hello world!";
}
пользуйтесь пока я добрый
+1
Хрюкни №3
._ __,
|\,../'\
,'. . `.
.-- '`.
( `' , ;
,`--' _, ,'\
,`.____ `.
/ `, |
' \, '
| / /`,
`, . ,` ./ |
' `. ,' |;,' ,@
______| | _________,_____jv______
`. `. ,'
,'_,','_,
`' `'
№2 https://govnokod.xyz/_26868/
№1 https://govnokod.xyz/_26863/
0
>>> def f(positional_only, /, regular, *varargs, kw_only, **kw_varargs):
print(positional_only, regular, varargs, kw_only, kw_varargs)
f(1, 2, 3, 4, 5, kw_only='kw_only', kw_var1='var1', kw_var2='var2')
# 1 2 (3, 4, 5) kw_only {'kw_var1': 'var1', 'kw_var2': 'var2'}
Блядь, как всё сложно…
https://www.python.org/dev/peps/pep-0570/
0
https://ru.wikihow.com/%D0%B8%D0%B7%D1%83%D1%87%D0%B8%D1%82%D1%8C-PHP-%D0%B8-MySQL
−1
updateTimer() {
requestAnimationFrame(() => {
this.timeLeft = this.resendTimeDuration - (Date.now() * 0.001 - this.lastTimeLeft);
if (this.timeLeft <= 0) {
this.resetTimer();
return;
} else {
this.lastTimeLeft = this.timeLeft;
this.updateTimer();
}
});
}
А как сделать таймер обратного отсчета?
+1
def fake_bin(x):
k = ''
while len(x) > 0:
if int(x) % 10 >= 5:
k += '1'
x = x[0:-1]
else:
k += '0'
x = x[0:-1]
return k[::-1]
+2
https://pythoninstitute.org/certification/
кто последний в сертификацию напитон?
0
#include <iostream>
using namespace std;
int main()
{
cout << "is_same_v: " << std::is_same_v<int, const int> << endl;
}
https://en.cppreference.com/w/cpp/types/is_same
> If T and U name the same type (taking into account const/volatile qualifications), provides the member constant value equal to true. Otherwise value is false.
+2
tar -czvf arhiv.tar.hz .
tar -xzf arhiv.tar.hz
Как запомнить эти команды? Бывает гуглю их в день по нескольку раз )))
Сделать алиаснюшню "tar pack" и "tar unpack"?
0
#include <iostream>
int main(){
std::cout << "Hello, world!" << std::endl;
}
лучший в мире код сосите