- 1
- 2
- 3
} catch (...) {
// ¯\_(ツ)_/¯
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+4
} catch (...) {
// ¯\_(ツ)_/¯
}
Ну заебись комментарий
0
#ifndef EXCHANGECLIENTBINANCE_H
#define EXCHANGECLIENTBINANCE_H
#include "exchangeclient.h"
#include <QScopedPointer>
#include <QString>
class ExchangeClientBinancePrivate;
class ExchangeClientBinance : public ExchangeClient<ExchangeClientBinance>
{
QScopedPointer<ExchangeClientBinancePrivate> d_ptr;
public:
ExchangeClientBinance() noexcept;
~ExchangeClientBinance();
void connect(const ConnectionCredentials& credentials) noexcept;
};
template<>
struct ExchangeClient<ExchangeClientBinance>::ConnectionCredentials
{
QString apiKey;
QString secretKey;
};
#endif // EXCHANGECLIENTBINANCE_H
0
/*
* libcaca Colour ASCII-Art library
* Copyright (c) 2002-2010 Sam Hocevar <[email protected]>
* All Rights Reserved
*
* This library is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
/*
* This header contains a conio.h reimplementation.
*/
#ifndef __CACA_CONIO_H__
#define __CACA_CONIO_H__
/* Since we're going to redefine standard functions, include these
* headers first to avoid errors upon later inclusion. */
#if !defined(__KERNEL__)
# include <stdio.h>
#endif
#include <caca.h>
#if !defined _DOXYGEN_SKIP_ME && !defined __LIBCACA__
# undef BLINK
# define BLINK CACA_CONIO_BLINK
# undef BLACK
# define BLACK CACA_CONIO_BLACK
# undef BLUE
# define BLUE CACA_CONIO_BLUE
# undef GREEN
# define GREEN CACA_CONIO_GREEN
# undef CYAN
# define CYAN CACA_CONIO_CYAN
# undef RED
# define RED CACA_CONIO_RED
# undef MAGENTA
# define MAGENTA CACA_CONIO_MAGENTA
# undef BROWN
# define BROWN CACA_CONIO_BROWN
# undef LIGHTGRAY
# define LIGHTGRAY CACA_CONIO_LIGHTGRAY
# undef DARKGRAY
# define DARKGRAY CACA_CONIO_DARKGRAY
# undef LIGHTBLUE
# define LIGHTBLUE CACA_CONIO_LIGHTBLUE
# undef LIGHTGREEN
# define LIGHTGREEN CACA_CONIO_LIGHTGREEN
# undef LIGHTCYAN
# define LIGHTCYAN CACA_CONIO_LIGHTCYAN
# undef LIGHTRED
# define LIGHTRED CACA_CONIO_LIGHTRED
# undef LIGHTMAGENTA
# define LIGHTMAGENTA CACA_CONIO_LIGHTMAGENTA
# undef YELLOW
# define YELLOW CACA_CONIO_YELLOW
# undef WHITE
# define WHITE CACA_CONIO_WHITE
#endif
0
Телефоны
8 (800) 333-17-63
8 (495) 215-03-87
Email
[email protected]
[email protected]
Компания
ООО «ДДОС-ГВАРД»
Реквизиты
ИНН / КПП: 9204005780 / 616701001
ОГРН: 1149204010988
Техническая поддержка
Интересующий вас вопрос можно задать через онлайн-чат
Адрес
(фактический/юридический)
344019, г. Ростов-на-Дону, ул. Максима Горького, д. 276, этаж 5, офис 11.
Phone numbers
+55 114 673-34-74
+7 495 215-03-87
Email
[email protected]
[email protected]
Technical support
You can ask your question via live chat
Address
101 Rose Street South Lane, Edinburgh,
Scotland, UK, EH2 3JG
Ну и хули вы спите и вот эти всё ещё в бизнесе?
0
#define CONSTRUCT_JUMP(name_, opcode_) else if(mnemonic.name == #name_) \
subcompileMnemonic(mnemonic, {\
{constructDescription(CONSTANT), opcode_},\
{constructDescription(LABEL), opcode_}})
CONSTRUCT_JUMP(JMP, JMP);
CONSTRUCT_JUMP(JE, JZ);
CONSTRUCT_JUMP(JZ, JZ);
CONSTRUCT_JUMP(JNZ, JNZ);
CONSTRUCT_JUMP(JNE, JNZ);
CONSTRUCT_JUMP(JG, JG);
CONSTRUCT_JUMP(JNLE, JG);
CONSTRUCT_JUMP(JNLZ, JG);
CONSTRUCT_JUMP(JLE, JNG);
CONSTRUCT_JUMP(JLZ, JNG);
CONSTRUCT_JUMP(JNG, JNG);
CONSTRUCT_JUMP(JGE, JGZ);
CONSTRUCT_JUMP(JGZ, JGZ);
CONSTRUCT_JUMP(JNL, JGZ);
CONSTRUCT_JUMP(JNGZ, JL);
CONSTRUCT_JUMP(JNGE, JL);
CONSTRUCT_JUMP(JL , JL);
CONSTRUCT_JUMP(JB, JB);
CONSTRUCT_JUMP(JNAE, JB);
CONSTRUCT_JUMP(JNAZ, JB);
CONSTRUCT_JUMP(JC, JB);
CONSTRUCT_JUMP(JNB, JNB);
CONSTRUCT_JUMP(JAE, JNB);
CONSTRUCT_JUMP(JAZ, JNB);
CONSTRUCT_JUMP(JNC, JNB);
CONSTRUCT_JUMP(JBE, JBZ);
CONSTRUCT_JUMP(JBZ, JBZ);
CONSTRUCT_JUMP(JNA, JBZ);
CONSTRUCT_JUMP(JA, JA);
CONSTRUCT_JUMP(JNBE, JA);
CONSTRUCT_JUMP(JNBZ, JA);
CONSTRUCT_JUMP(CALL, CALL);
#undef CONSTRUCT_JUMP
−1
.-----------------------------------------------------------------------------.
||Es| |F1 |F2 |F3 |F4 |F5 | |F6 |F7 |F8 |F9 |F10| C= AMIGA |
||__| |___|___|___|___|___| |___|___|___|___|___| |
| _____________________________________________ ________ ___________ |
||~ |! |" |§ |$ |% |& |/ |( |) |= |? |` || |<-| |Del|Help| |{ |} |/ |* | |
||`__|1_|2_|3_|4_|5_|6_|7_|8_|9_|0_|ß_|´_|\_|__| |___|____| |[ |]_|__|__| |
||<- |Q |W |E |R |T |Z |U |I |O |P |Ü |* | || |7 |8 |9 |- | |
||->__|__|__|__|__|__|__|__|__|__|__|__|+_|_ || |__|__|__|__| |
||Ctr|oC|A |S |D |F |G |H |J |K |L |Ö |Ä |^ |<'| |4 |5 |6 |+ | |
||___|_L|__|__|__|__|__|__|__|__|__|__|__|#_|__| __ |__|__|__|__| |
||^ |> |Y |X |C |V |B |N |M |; |: |_ |^ | |A | |1 |2 |3 |E | |
||_____|<_|__|__|__|__|__|__|__|,_|._|-_|______| __||_|__ |__|__|__|n | |
| |Alt|A | |A |Alt| |<-|| |->| |0 |. |t | |
| |___|___|_______________________|___|___| |__|V_|__| |_____|__|e_| |
| |
`-----------------------------------------------------------------------------'
0
function main() {
let arr = [1, 2, 3];
const it =
(
function* iter() {
for (const v of arr)
yield ((x: typeof v) => x + 1)(v);
}
)();
for (const v of it) print(v);
print("done.");
}
продолжаем говнокодить... т.е. генерировать жуткое.. г-но :) ну как вам такой код? слабо?
0
procedure TOstatkiForm.FormCreate(Sender: TObject);
begin
OstatkiTovarList:=TStringList.Create;
btnShowToConvert.Enabled := False;
grpToConvert.Visible := False;
zqrToConvert.SQL.Text := 'select null::integer ostid,' + #13#10 +
'null::integer tovarid,' + #13#10 +
'null::bigint kt,' + #13#10 +
'null::varchar nt,' + #13#10 +
'null::numeric cen,' + #13#10 +
'null::integer edizmerid,' + #13#10 +
'null::varchar name_u,' + #13#10 +
'null::date income_period,' + #13#10 +
'null::varchar ss,' + #13#10 +
'null::numeric ost_doc,' + #13#10 +
'null::numeric gsum' + #13#10 +
'where 1=2';
end;
Без комментариев
0
procedure TForm9.FormShow(Sender: TObject);
var i_vx,o_dt,o_kt: real;
begin
Form9.Caption:='Èòîãî ïî æóðíàëó';
r_:='select sum(sma) as ism from '+t_ss;
with DM.ZQ_all do
begin
Close;
SQL.Clear;
SQL.Add(r_);
SQL.Add('where ch=1 and gd*100+ms<:rgd*100+:rms');
Params.ParamByName('rgd').Value :=t_gd;
Params.ParamByName('rms').Value :=t_ms;
Open;
first;
if Eof=true then i_vx:=0 else i_vx:=Fieldbyname('ism').asfloat;
Close;
SQL.Clear;
SQL.Add(r_);
SQL.Add('where ch=2 and gd*100+ms<:rgd*100+:rms');
Params.ParamByName('rgd').Value :=t_gd;
Params.ParamByName('rms').Value :=t_ms;
Open;
first;
if not Eof=true then i_vx:=i_vx - Fieldbyname('ism').asfloat;
LEdit1.Text:=Format('%10.2f',[i_vx]);
Close;
SQL.Clear;
SQL.Add(r_);
SQL.Add('where ch=1 and gd*100+ms=:rgd*100+:rms');
Params.ParamByName('rgd').Value :=t_gd;
Params.ParamByName('rms').Value :=t_ms;
Open;
first;
if Eof=true then o_dt:=0 else o_dt:=Fieldbyname('ism').asfloat;
LEdit2.Text:=Format('%10.2f',[o_dt]);
Close;
SQL.Clear;
SQL.Add(r_);
SQL.Add('where ch=2 and gd*100+ms=:rgd*100+:rms');
Params.ParamByName('rgd').Value :=t_gd;
Params.ParamByName('rms').Value :=t_ms;
Open;
first;
if Eof=true then o_kt:=0 else o_kt:=Fieldbyname('ism').asfloat;
Close;
LEdit3.Text:=Format('%10.2f',[o_kt]);
LEdit4.Text:=Format('%10.2f',[i_vx+o_dt-o_kt]);
end;
end;
−6
Подписывайтесь на канал Говнокода в телеграме:
https://t.me/GovnokodChannel