This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.1' | |
services: | |
horse: | |
image: hashload/delphi-dev:10.3.2-rio | |
privileged: true | |
tty: true | |
ports: | |
- '9000:9000' | |
- '64211:64211' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"success": true, | |
"challenge_ts": "timestamp", | |
"hostname": "string", | |
"error-codes": [] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const | |
BASE_URL = 'https://www.google.com/recaptcha/api/siteverify'; | |
SECRET_KEY = 'MY SECRET KEY'; | |
var | |
LResponse: IResponse; | |
begin | |
LResponse := TRequest.New.BaseURL(BASE_URL) | |
.AddParam('secret', SECRET_KEY) | |
.AddParam('response', 'TOKEN GERADO PELO CAPTCHA') | |
.Post; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pt-br"> | |
<head> | |
<title>reCaptcha</title> | |
<script src="https://www.google.com/recaptcha/api.js?render=PUBLIC KEY"></script> | |
</head> | |
<body> | |
<script> | |
grecaptcha.ready(function() { | |
grecaptcha.execute('PUBLIC KEY').then(function(token) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uses System.Net.HttpClient, System.Net.Mime; | |
function Send: string; | |
var | |
LRequest: THTTPClient; | |
LFormData: TMultipartFormData; | |
LResponse: TStringStream; | |
begin | |
LRequest := THTTPClient.Create; | |
LFormData := TMultipartFormData.Create(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Classes.Amigas; | |
interface | |
type | |
TCarro = class | |
private | |
FId: Integer; | |
FNome: string; | |
procedure SetId(const Value: Integer); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Solid.SRP.Violacao; | |
interface | |
type | |
TLogger = class | |
private | |
procedure SendMail; | |
public | |
procedure Log; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Solid.SRP.MailService; | |
interface | |
type | |
TMailService = class | |
public | |
procedure SendMail; | |
end; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Solid.SRP.Logger; | |
interface | |
type | |
TLogger = class | |
public | |
procedure Log; | |
end; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit Solid.OCP.Violacao; | |
interface | |
type | |
TBancoItau = class | |
public | |
procedure GerarBoleto; | |
end; |
OlderNewer