Sugiro hospedar no Vercel.
This file contains 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 main | |
import ( | |
"fmt" | |
"path/filepath" | |
"strconv" | |
"github.com/dave/jennifer/jen" | |
"github.com/samber/lo" | |
"golang.org/x/text/cases" |
This file contains 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 duplicomp | |
type PessimisticCallerback struct { | |
succeded bool | |
successCallbacks []func() | |
failureCallbacks []func() | |
} | |
func (self *PessimisticCallerback) Callback() { | |
if self.succeded { |
This file contains 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 utils | |
import "sync" | |
type SyncMap[K comparable, V any] struct { | |
inner sync.Map | |
} | |
func (m *SyncMap[K, V]) convertValue(anyval any) V { | |
if anyval == nil { |
This file contains 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 main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"log" | |
"os" | |
) |
This file contains 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 crypto | |
import ( | |
"bytes" | |
"crypto/md5" | |
"encoding/binary" | |
"io" | |
) | |
type fakeRandom struct { |
This file contains 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
[Intro] G7(4/9) G7 | |
[Primeira Parte] | |
C7M F#º | |
Eu sei que vou te amar | |
Dm7 G7(b9) | |
Por toda a minha vida eu vou te amar | |
Gm7 A#7(b5) ou C7(9) | |
Em cada despedida eu vou te amar |
This file contains 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 utils | |
import "encoding/json" | |
type Optional[T any] struct { | |
explicit bool | |
hasValue bool | |
value T | |
} |
git clone https://gist.github.com/4467e71715abacd6414219daa3165591.git OTLocal
cd OTLocal
docker-compose up
- Jaeger UI: http://localhost:16686/
- OTLP Endpoint: http://localhost:4317
This file contains 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
#!/bin/bash | |
# Check out the latest version at https://gist.github.com/mniak/09e5e46425ced7e3fe1c1661c24a0d8c | |
## CUSTOMIZATION SECTION: Type your own code below. You can add or remove lines if you need/want | |
NewerOlder