Skip to content

Instantly share code, notes, and snippets.

View rmterra's full-sized avatar

Ricardo M. Terra rmterra

  • São Paulo, Brasil
View GitHub Profile
@fernandoseguim
fernandoseguim / CapptaTestCase-TransactionReportsAPI.md
Last active July 19, 2018 14:59
Cappta Test Case-Transaction Reports API

Teste prático - API de Relatório de Transações

Mesmo numa era digital, ainda é extremamente comum o lojista realizar o fechamento do caixa de maneira manual comparando as informações dos comprovantes emitidos no POS (aquela maquininha de cartão que imprimi o comprovante no momento da venda) com as informações geradas pelo seu sistema de vendas. Uma excelente forma de resolver esse problema é utilizar nosso sistema integrador TEF (Transferencias Eletrônicas de Fundos) para realizar as transações de pagamento a partir de um PDV integrado, através de nossos SDKs, com a automação comercial do cliente utilizando um PinPad (aquelas maquininhas que normalmente são vistas nos caixas de supermercado ou farmácias) para capturar os dados do cartão do consumidor.

A Cappta tem como propósito tornar a vida do empreendedor brasileiro mais fácil e para isso, buscamos prover soluções tecnologicas como a API de Relatório de Transações que é responsável por alimentar um portal onde o empreendedor é capaz de acompanhar todas

@w0rd-driven
w0rd-driven / passwords.txt
Created November 18, 2016 20:19
BFG Repo-Cleaner --replace-text example
PASSWORD1 # Replace literal string 'PASSWORD1' with '***REMOVED***' (default)
PASSWORD2==>examplePass # replace with 'examplePass' instead
PASSWORD3==> # replace with the empty string
regex:password=\w+==>password= # Replace, using a regex
regex:\r(\n)==>$1 # Replace Windows newlines with Unix newlines
@joyrexus
joyrexus / README.md
Last active June 8, 2023 07:45
form-data vs -urlencoded

Nice answer on stackoverflow to the question of when to use one or the other content-types for POSTing data, viz. application/x-www-form-urlencoded and multipart/form-data.

“The moral of the story is, if you have binary (non-alphanumeric) data (or a significantly sized payload) to transmit, use multipart/form-data. Otherwise, use application/x-www-form-urlencoded.”


Matt Bridges' answer in full:

The MIME types you mention are the two Content-Type headers for HTTP POST requests that user-agents (browsers) must support. The purpose of both of those types of requests is to send a list of name/value pairs to the server. Depending on the type and amount of data being transmitted, one of the methods will be more efficient than the other. To understand why, you have to look at what each is doing

@nvnivs
nvnivs / Psake-Build.ps1
Last active May 10, 2023 15:44
Generic Psake build script
Properties {
$baseDir = Resolve-Path .
$project = Split-Path $baseDir -Leaf
$artifactDir = "$baseDir\Build\Packages"
$version = "1.0.1"
}
Task Default -Depends Build
Task Clean {
if (Test-Path "$baseDir\build") {