Skip to content

Instantly share code, notes, and snippets.

View gmarcial's full-sized avatar
🐉

Guilherme Marcial gmarcial

🐉
View GitHub Profile
//EndPoint: /api/values
//Verbo Http: Post
//O header Content-Type deve ser application/json
//Servidor precisa receber assim.
{ "DataHora": "5/16/2018 5:04:20 PM", "Precipitacao": "15.5" }
//Você como desenvolvedor deve montar e enviar o payload assim.
//Onde esta {NomeAqui}, substitua pela variavel, sem as chaves, dentro dos parentes.
string payloadJson = "{ \"DataHora\": " + "\"" + DataHora + "\"" + ", \"Precipitacao\": " + "\"" + Precipitacao + "\" }";
{
"CollectedDate":"01-28-2019 14:30:00", //date time
"StationId":50, //int
"DataGroup":[
{
"Value":0.5, //decimal
"Name":"Pluviometria", //string
"MeasureType":"mm" //string
},
{
//Criação de um evento.
{
"Nome":"Evento XPTO",
"Descrição":"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
"Periodo":{
"DataInicial":"10/03/2020 10:00:00",
"DataFinal":"10/04/2020 15:00:00"
},
"AtracoesIds":[
1,
from __future__ import annotations
from abc import ABC, abstractmethod, abstractproperty
from typing import Any
class Builder(ABC):
"""
The Builder interface specifies methods for creating the different parts of
the Product objects.
"""
/**
* The Abstract Class defines a template method that contains a skeleton of some
* algorithm, composed of calls to (usually) abstract primitive operations.
*
* Concrete subclasses should implement these operations, but leave the template
* method itself intact.
*/
abstract class AbstractClass {
/**
* The template method defines the skeleton of an algorithm.
using System;
namespace RefactoringGuru.DesignPatterns.Adapter.Conceptual
{
// The Target defines the domain-specific interface used by the client code.
public interface ITarget
{
string GetRequest();
}
{
"nome":"teste",
"dados":[
{
"acao":"tts",
"timeout":"4",
"acao_dados":{
"mensagem":"Olá tudo bem? Aqui é da Connect mindset, qual o seu nome?",
"tipo_voz":"br-Camila",
"velocidade":"-5",
- 192.168.201.123:5000/integrate/company/insert?chunk-size=10
@gmarcial
gmarcial / chulin
Last active November 26, 2020 19:37
# api oauth2
server {
listen 80;
listen [::]:80;
server_name auth.suporte.connectintegra.com.br;
location / {
if ($request_method = 'OPTIONS') {
# Tell client that this pre-flight info is valid for 20 days
#!/usr/bin/env bash
# DESCRIPTION: A simple shell script designed to fetch the latest version
# of the artifacts credential provider plugin for dotnet and
# install it into $HOME/.nuget/plugins.
# SEE: https://github.com/Microsoft/artifacts-credprovider/blob/master/README.md
REPO="Microsoft/artifacts-credprovider"
FILE="Microsoft.NuGet.CredentialProvider.tar.gz"
VERSION="v0.1.24"
# URL pattern documented at https://help.github.com/en/articles/linking-to-releases as of 2019-03-29