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
// 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++ { |
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
package uuid | |
import ( | |
googleUUID "github.com/google/uuid" | |
) | |
// Generator ... | |
type Generator interface { | |
NewUUID() (string, error) | |
} |
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
https://hpbn.co/ |
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
#!/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 |
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
# 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 |
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
- 192.168.201.123:5000/integrate/company/insert?chunk-size=10 |
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
{ | |
"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", |
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
using System; | |
namespace RefactoringGuru.DesignPatterns.Adapter.Conceptual | |
{ | |
// The Target defines the domain-specific interface used by the client code. | |
public interface ITarget | |
{ | |
string GetRequest(); | |
} |
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
/** | |
* 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. |
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
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. | |
""" |
NewerOlder