[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Instantly share code, notes, and snippets.

View ken39arg's full-sized avatar

Kensaku Araga ken39arg

  • KAYAC Inc.
  • Yokohama, Kamakura
View GitHub Profile
#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
my $old_version=`git describe --tag --abbrev=0`;
chomp $old_version;
my ($major, $minor, $patch) = (0, 0, 0);
if ($old_version =~ /v?(\d+)\.(\d+)\.(\d+)/) {
package main
import (
"log"
"testing"
"golang.org/x/sync/errgroup"
)
type action func() error
package main
import (
"context"
"crypto/sha1"
"encoding/hex"
"fmt"
"hash/crc32"
"log"
"math/rand"
package main
import (
"bytes"
"encoding/base64"
"io/ioutil"
"log"
"os"
)
package main_test
import (
"fmt"
"strconv"
"testing"
)
var (
prefix = "abcdefghi:"
package phrasetrie
import (
"strings"
"unicode"
"unicode/utf8"
)
type node struct {
value string
package phrasetrie
import "strings"
type node struct {
value string
children []*node
}
func newNode(size int) *node {
package phrasetrie
import (
"math/rand"
"sort"
"testing"
)
type mp map[int]struct{}
package phrasetrie
type node struct {
children map[rune]*node
value string
}
func newNode() *node {
return &node{
children: make(map[rune]*node),
package phrasetrie
import (
"regexp"
"strings"
"testing"
"github.com/google/go-cmp/cmp"
)