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
[ | |
{ | |
"coin": "AGLD", | |
"depositAllEnable": true, | |
"free": "0", | |
"freeze": "0", | |
"ipoable": "0", | |
"ipoing": "0", | |
"isLegalMoney": false, | |
"locked": "0", |
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 timeseriescache | |
import ( | |
"sync" | |
"time" | |
"go.uber.org/zap" | |
) | |
const ( |
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
type A1 struct { | |
logger *zap.SuggaredLogger | |
} | |
type A2 struct { | |
logger *zap.SuggaredLogger | |
} | |
type A struct { | |
logger *zap.SuggaredLogger |
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
func check(j, arrLength int) bool { | |
return j < (arrLength-1) | |
} | |
func Query1(arr []int, queries [][2]int) { | |
var queryResult int | |
for _, q := range queries { | |
if check(q[1], len(arr)) { | |
log.Fatalf("Invalid query: %d, %d", q[0], q[1]) | |
} |
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" | |
"log" | |
"pkg/appconfig" | |
"pkg/dbx" | |
} |
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
FROM alpine | |
RUN apk update && apk add --no-cache tar | |
WORKDIR /etcd | |
RUN wget https://github.com/etcd-io/etcd/releases/download/v3.5.2/etcd-v3.5.2-linux-amd64.tar.gz | |
RUN tar -xvzf etcd-v3.5.2-linux-amd64.tar.gz | |
RUN rm -f etcd-v3.5.2-linux-amd64.tar.gz |
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" | |
) | |
func main() { | |
var ( | |
input = []int{1, 2, 3, 4, 5, 6, 7} | |
k int = 4 |
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" | |
"sort" | |
) | |
func main() { | |
var ( | |
req = []string{"812", "82", "7", "23", "12", "34"} |
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" | |
) | |
func Failure(s string) []int { | |
res := make([]int, len(s)) | |
for i := range s { | |
var max int |
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" | |
) | |
func main() { | |
var ( | |
s = 0 | |
P = "acabac" |
NewerOlder