Skip to content

Instantly share code, notes, and snippets.

View gmarcial's full-sized avatar
🐉

Guilherme Marcial gmarcial

🐉
View GitHub Profile
// You can edit this code!
// Click here and start typing.
package main
import "fmt"
func main() {
a := []int32{13, 20, 8, 9}
var sum int32
for i := 0; i < len(a); i++ {
package uuid
import (
googleUUID "github.com/google/uuid"
)
// Generator ...
type Generator interface {
NewUUID() (string, error)
}
#!/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
@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
- 192.168.201.123:5000/integrate/company/insert?chunk-size=10
{
"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",
using System;
namespace RefactoringGuru.DesignPatterns.Adapter.Conceptual
{
// The Target defines the domain-specific interface used by the client code.
public interface ITarget
{
string GetRequest();
}
/**
* 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.
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.
"""