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 e2etest | |
import ( | |
"context" | |
"crypto/sha1" | |
"crypto/sha256" | |
"encoding/binary" | |
"math/big" | |
"strconv" | |
"testing" |
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 e2etest | |
import ( | |
"context" | |
"crypto/rand" | |
"crypto/sha1" | |
"encoding/binary" | |
"io" | |
"math/big" | |
"strconv" |
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
cpu: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz | |
BenchmarkEncode | |
BenchmarkEncode/Original | |
BenchmarkEncode/Original-12 198959738 6.091 ns/op 0 B/op 0 allocs/op | |
BenchmarkEncode/Inline | |
BenchmarkEncode/Inline-12 252104388 4.651 ns/op 0 B/op 0 allocs/op | |
BenchmarkEncode/Expand | |
BenchmarkEncode/Expand-12 137883550 8.575 ns/op 0 B/op 0 allocs/op | |
BenchmarkEncode/Optimized | |
BenchmarkEncode/Optimized-12 320572156 3.725 ns/op 0 B/op 0 allocs/op |
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" | |
"net/http" | |
) | |
type HList interface { | |
hlist() | |
} |
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 ( | |
"bytes" | |
"fmt" | |
"io" | |
) | |
type wrap[T any] 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
package main | |
import ( | |
"fmt" | |
"go/ast" | |
"go/token" | |
"os" | |
"strings" | |
builders "github.com/tdakkota/astbuilders" |
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 | |
type CacheNode[K, V any] struct { | |
key K | |
value V | |
prev *CacheNode[K, V] | |
next *CacheNode[K, V] | |
parent *FreqNode[K, V] | |
} |
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
var id = 1; | |
var users = []; | |
var i = 0; | |
while(i < 25) { | |
var req = API.groups.getMembers({"group_id":id,"count":1000, | |
"offset":i*1000,"fields":"sex, bdate, city, country, photo_50, photo_100, photo_200_orig, photo_200, photo_400_orig, photo_max, photo_max_orig, online, online_mobile, lists, domain, has_mobile, contacts, connections, site, education, universities, schools, can_post, can_see_all_posts, can_see_audio, can_write_private_message, status, last_seen, common_count, relation, relatives"}); | |
users.push(req.items); | |
i = i + 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
через :: a -> a | |
через a = a | |
греку :: a -> a | |
греку a = a | |
в :: a -> a | |
в a = a | |
реке :: a -> a |
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" | |
) | |
type Context struct { | |
Max int | |
Max7 int | |
} |
NewerOlder