Skip to content

Instantly share code, notes, and snippets.

@cheshir
cheshir / tg-msgs.json
Created February 14, 2023 16:09
tg-msgs
["v2.1.0 \"Global layoffs\"<br />\n<br />\n\u0412\u0441\u0456 \u0447\u0443\u043b\u0438 \u043f\u0440\u043e \u043c\u0430\u0441\u043e\u0432\u0456 \u0437\u0432\u0456\u043b\u044c\u043d\u0435\u043d\u043d\u044f \u0441\u0435\u0440\u0435\u0434 \u0432\u0435\u043b\u0438\u043a\u0438\u0445 \u043a\u043e\u043c\u043f\u0430\u043d\u0456\u0439. <br />\n\u041f\u0440\u0438\u0447\u0438\u043d\u0430\u043c\u0438 \u0432\u0432\u0430\u0436\u0430\u044e\u0442\u044c: \u0431\u0430\u0433\u0430\u0442\u043e \u043d\u0430\u0439\u043c\u0430\u043b\u0438 \u043f\u0456\u0434 \u0447\u0430\u0441 \u043a\u043e\u0432\u0456\u0434\u0443, \u0440\u0435\u0446\u0435\u0441\u0456\u044f - \u0433\u0440\u043e\u0448\u0456 \u0441\u0442\u0430\u043b\u0438 \u0434\u043e\u0440\u043e\u0436\u0447\u0435 - \u0444\u043e\u043a\u0443\u0441 \u0437\u043c\u0456\u0441\u0442\u0438\u0432\u0441\u044f \u0437 \"\u0440\u0456\u0441\u0442 \u0437\u0430 \u0431\u0443\u0434\u044c-\u044f\u043a\u0443 \u0446\u0456\u043d\u0443\" \u043d\u0430 \"\u0442\u0440\u0435\u0431\u0430 \u0431\u0456\u043b\u044c\
We can't make this file beautiful and searchable because it's too large.
1,2
2,3
3,5
4,7
5,11
6,13
7,17
8,19
9,23
10,29
@cheshir
cheshir / merge_channels.go
Last active July 30, 2020 21:22
Mobalytics live coding results
package main
import (
"context"
"fmt"
"sync"
"time"
)
func main() {
package main
import (
"fmt"
"math/rand"
"strings"
"time"
)
type turn uint8
We can't make this file beautiful and searchable because it's too large.
0.5,h8 h9 h7 h6 i9 g7 f8 i8 f10 j7 k6 j8 i7 j6 j5 g8 f7 g10 f11 f9 g9 e11 j10 e7 f6 g4 i4 h3 h5 g6 g5 k5 i5 f5 i3 i6 i2 i1 h11 i11 k10 l10 l5 k4 l4 l6 k9 k11 l9 l7 m9 j9 k8 k7 n7 m8 d7 e10 n6 n5 m7 l8 f12 h12 e13 g11 f13 f14 g13 h13 i13 c10 c12
0.5,h8 h9 h6 i10 i6 i9 g9 g8 j11 i7 h10 i11 i8 k9 j10 h7 g7 j9 l9 k8 l7 g12 h11 e10 d11 f11 h13 h12 i12 k10 k7 e8 f7 e9 e11 c8
0.5,h8 h9 h6 i10 i6 i9 g9 g8 j11 i7 h10 i11 i8 k9 j10 h7 g7 j9 l9 k8 l7 g12 h11 e10 h13 e9 h12 h14 d11 k10 k11 e8 e7 f8 e11 f10 f11 g11 d8 c10 b11 c11 d10 f7 e6 k7
0.5,h8 h9 h6 i10 i6 i9 g9 g8 j11 i7 i8 k7 j9 k10 h10 j7 l7 f8 f7 h4 l8 l6 j8 k8 k9 i11 j12 j10 l10 l11 i13 k11 g13 m11 m10 l12 m13 k13 j14 n8 n9 n10 o9 j4 k6 g7 h7 j5 j6 g6 g5 k5 m7 j3 g11 h12 h13 k14 k12 f13 g12 g10 f11 i14 e11 d11 f12
0.5,h8 h9 j10 i9 g9 i7 i10 g10 k9 k10 i8 j8 k7 l8 f8 e8 h11 g12 g6 f6 h5 g5 i4 j3 e7 h6 f4 d6 j5 k6 g4 h4 i6
0.5,h8 h9 h7 h6 i8 g8 f7 i7 g6 f5 h5 i4 j8 j9 i9 g7 k7 l6 f8 j4 i5 h4 k4 k5 i3 f4 g4 f3 f2 g3 e3 e5 d6 d5 h10 g11 g9 e7 c5 d4 k10
0.5,h8 h9 j1
@cheshir
cheshir / full_games_renjunet.csv
Created October 31, 2018 09:53
finished games from renjunet
We can't make this file beautiful and searchable because it's too large.
0,h8 h9 i6 i8 g10 g9 i9 f7 e6 g6 g7 f6 f5 f8 e8 e7 h10 f9 f10 e10 d8 d11 g8 g11 e9 c7 d7 g4 f11 d6 c5 k7 c8 b9 b8 a8 k6 i4 h4 c12 b13 e12 c10 e14 d12 l8 l7 k9 j6 l6 m7 k10 k8 j9 l11 h7
1,h8 i9 h6 h9 i7 j8 k7 j7 j9 j6 j5 h5 i6 g8 k4 l3 f7 k6 i8 g6 g7 f8 e7 h7 f6 g5 e5 d4 e6 e8 f4 c8 d8 d6 e4 e3 f5 f3 i4 i5 g4 h4 h3 i2 d7
1,h8 i9 g6 h9 j9 j7 i8 h7 k8 j8 k7 k9 l10 l8 i11 h11 l11 l12 k10 m12 j12 j10 k11 i13 m8 j11 m6 m7 n6 l7 n9 n8 k13 h10 k12 k14 m10 j13 o8
1,h8 h9 f10 g9 i9 g7 g10 i10 g8 f9 e9 f8 e10 d10 e11 e12 e7 e8 d8 c7 j8 g11 k7 l6 k8 i8 k9 k6 j7 j9 g5 i7 f6 h4 c9
1,h8 h9 i7 g9 g8 h7 j9 j8 k8 k7 l7 m6 l6 l8 i5 i6 k5 j5 f8 k4 l3 e8 j4 i3 k10 j10 k11 k9 i11 h11 f9 f7 m7 n8 l11 m12 m11 j11 n11 o11 m10 m9 n10 l9 k13 o9 n9 l12 j12 h10 i13 h14 j13 k12 l13 m13 h13
1,h8 h9 j10 i9 i8 g9 j9 j8 h10 k10 f9 e8 f7 f6 g12 i10 f11 j11 k12 e10 h12 i12 h13 i13 i11 g13 e9 f10 d10 c11 h6 g7 k7 l8 k6 k5 m8 l7 l5 h5 g5 f4 k4 j3 m4 j7 l4 n4 i6 j6 j5 l3 i4 j4 i5 i7 i3 i2 e5 d6 e6 d5 d7 c8 c9 e11 d12 e12 c5 f3 e4 f2 f5 e3 d3 c2 l1
@cheshir
cheshir / locks_test.go
Last active July 23, 2021 14:19
Handmade mutex in go
package main
import (
"sync"
"testing"
)
func BenchmarkLock(b *testing.B) {
var mu Lock
package main
import (
"github.com/cheshir/go-mq"
"gopkg.in/yaml.v2"
)
var externalConfiguration = []byte(`
{
"dsn": "amqp://guest:guest@localhost:5672/mq",
package main
import (
"github.com/cheshir/go-mq"
"gopkg.in/yaml.v2"
)
var externalConfiguration = []byte(`
dsn: "amqp://guest:guest@localhost:5672/mq"
exchanges: