Skip to content

Commit

Permalink
Rename profile
Browse files Browse the repository at this point in the history
  • Loading branch information
obalunenko committed Nov 18, 2020
1 parent cc579fb commit de51d63
Show file tree
Hide file tree
Showing 108 changed files with 3,111 additions and 13,763 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ linters-settings:
lll:
line-length: 120
goimports:
local-prefixes: github.com/oleg-balunenko/advent-of-code/
local-prefixes: github.com/obalunenko/advent-of-code/
unparam:
algo: cha
check-exported: false
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
release:
github:
owner: oleg-balunenko
owner: obalunenko
name: advent-of-code

builds:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/oleg-balunenko/advent-of-code)
[![Build Status](https://travis-ci.com/oleg-balunenko/advent-of-code.svg?branch=master)](https://travis-ci.com/oleg-balunenko/advent-of-code)
[![Go Report Card](https://goreportcard.com/badge/github.com/oleg-balunenko/advent-of-code)](https://goreportcard.com/report/github.com/oleg-balunenko/advent-of-code)
[![Go Report Card](https://goreportcard.com/badge/github.com/obalunenko/advent-of-code)](https://goreportcard.com/report/github.com/obalunenko/advent-of-code)
[![codecov](https://codecov.io/gh/oleg-balunenko/advent-of-code/branch/master/graph/badge.svg)](https://codecov.io/gh/oleg-balunenko/advent-of-code)
[![GoDoc](https://godoc.org/github.com/oleg-balunenko/advent-of-code?status.svg)](https://godoc.org/github.com/oleg-balunenko/advent-of-code)
[![GoDoc](https://godoc.org/github.com/obalunenko/advent-of-code?status.svg)](https://godoc.org/github.com/obalunenko/advent-of-code)

My solutions of puzzles for [Advent Of Code](https://adventofcode.com/)

This repository contains solutions for puzzles and cli tool to run solutions to get answers for input on site.

## Usage of aoc-cli

Download binary from [![Latest release artifacts](https://img.shields.io/badge/artifacts-download-blue.svg)](https://github.com/oleg-balunenko/advent-of-code/releases/latest)
Download binary from [![Latest release artifacts](https://img.shields.io/badge/artifacts-download-blue.svg)](https://github.com/obalunenko/advent-of-code/releases/latest)
and execute

Run it and follow instructions
Expand Down
6 changes: 3 additions & 3 deletions cmd/aoc-cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
log "github.com/sirupsen/logrus"
"github.com/urfave/cli"

"github.com/oleg-balunenko/advent-of-code/internal/input"
"github.com/oleg-balunenko/advent-of-code/internal/puzzles"
"github.com/obalunenko/advent-of-code/internal/input"
"github.com/obalunenko/advent-of-code/internal/puzzles"

// register all solutions.
_ "github.com/oleg-balunenko/advent-of-code/internal/puzzles/solutions"
_ "github.com/obalunenko/advent-of-code/internal/puzzles/solutions"
)

const (
Expand Down
7 changes: 4 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/oleg-balunenko/advent-of-code
module github.com/obalunenko/advent-of-code

go 1.15

Expand All @@ -8,8 +8,9 @@ require (
github.com/manifoldco/promptui v0.8.0
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/pkg/errors v0.9.1
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/sirupsen/logrus v1.7.0
github.com/stretchr/testify v1.6.1
github.com/stretchr/testify v1.2.2
github.com/urfave/cli v1.22.5
golang.org/x/sys v0.0.0-20201106081118-db71ae66460a // indirect
golang.org/x/sys v0.0.0-20201118182958-a01c418693c7 // indirect
)
14 changes: 5 additions & 9 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSY
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/cpuguy83/go-md2man/v2 v2.0.0 h1:EoUDS0afbrsXAZ9YQ9jdu/mZ2sXgT1/2yyNng4PGlyM=
github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/juju/ansiterm v0.0.0-20180109212912-720a0952cc2a h1:FaWFmfWdAUKbSCtOU2QjDaorUexogfaMgbipgYATUMU=
Expand Down Expand Up @@ -39,26 +38,23 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk=
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
github.com/sirupsen/logrus v1.7.0 h1:ShrD1U9pZB12TX0cVy0DtePoCH97K8EtX+mg7ZARUtM=
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/urfave/cli v1.22.5 h1:lNq9sAHXK2qfdI8W+GRItjCEkI+2oR4d+MEHy1CKXoU=
github.com/urfave/cli v1.22.5/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037 h1:YyJpGZS1sBuBCzLAR1VEpK193GlqGZbnPFnPV/5Rsb4=
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201106081118-db71ae66460a h1:ALUFBKlIyeY7y5ZgPJmblk/vKz+zBQSnNiPkt41sgeg=
golang.org/x/sys v0.0.0-20201106081118-db71ae66460a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20201118182958-a01c418693c7 h1:Z991aAXPjz0tLnj74pVXW3eWJ5lHMIBvbRfMq4M2jHA=
golang.org/x/sys v0.0.0-20201118182958-a01c418693c7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
2 changes: 1 addition & 1 deletion internal/puzzles/solutions/2019/day01/solution.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/pkg/errors"

"github.com/oleg-balunenko/advent-of-code/internal/puzzles"
"github.com/obalunenko/advent-of-code/internal/puzzles"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions internal/puzzles/solutions/2019/day02/solution.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/pkg/errors"

"github.com/oleg-balunenko/advent-of-code/internal/puzzles"
"github.com/oleg-balunenko/advent-of-code/internal/puzzles/utils/intcomputer"
"github.com/obalunenko/advent-of-code/internal/puzzles"
"github.com/obalunenko/advent-of-code/internal/puzzles/utils/intcomputer"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/puzzles/solutions/2019/day03/solution.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/pkg/errors"

"github.com/oleg-balunenko/advent-of-code/internal/puzzles"
"github.com/obalunenko/advent-of-code/internal/puzzles"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion internal/puzzles/solutions/2019/day04/solution.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/pkg/errors"

"github.com/oleg-balunenko/advent-of-code/internal/puzzles"
"github.com/obalunenko/advent-of-code/internal/puzzles"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions internal/puzzles/solutions/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
// Then to register solution in the list of all solutions: make a blank import of package with puzzle solution
// at register.go
//
// import _ "github.com/oleg-balunenko/advent-of-code/puzzles/solutions/day01"
// import _ "github.com/obalunenko/advent-of-code/puzzles/solutions/day01"
//
// And then blank import solutions package at main.go to register all solutions
//
// import _ "github.com/oleg-balunenko/advent-of-code/puzzles/solutions
// import _ "github.com/obalunenko/advent-of-code/puzzles/solutions
package solutions
8 changes: 4 additions & 4 deletions internal/puzzles/solutions/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package solutions
import (

// 2019 solutions.
_ "github.com/oleg-balunenko/advent-of-code/internal/puzzles/solutions/2019/day01"
_ "github.com/obalunenko/advent-of-code/internal/puzzles/solutions/2019/day01"

// register day02 solution.
_ "github.com/oleg-balunenko/advent-of-code/internal/puzzles/solutions/2019/day02"
_ "github.com/obalunenko/advent-of-code/internal/puzzles/solutions/2019/day02"

// register day03 solution.
_ "github.com/oleg-balunenko/advent-of-code/internal/puzzles/solutions/2019/day03"
_ "github.com/obalunenko/advent-of-code/internal/puzzles/solutions/2019/day03"

// register day04 solution.
_ "github.com/oleg-balunenko/advent-of-code/internal/puzzles/solutions/2019/day04"
_ "github.com/obalunenko/advent-of-code/internal/puzzles/solutions/2019/day04"
)
2 changes: 1 addition & 1 deletion internal/puzzles/solver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

"github.com/oleg-balunenko/advent-of-code/internal/puzzles"
"github.com/obalunenko/advent-of-code/internal/puzzles"
)

type mockSolver struct {
Expand Down
2 changes: 1 addition & 1 deletion scripts/compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ GOVERSION=$(go version | awk '{print $3;}')
GO_BUILD_LDFLAGS="-s -w -X 'main.commit=${COMMIT_HASH}' -X 'main.date=${DATE}' -X 'main.version=${VERSION}' -X 'main.goversion=${GOVERSION}'"

APP="aoc-cli"
MODULE="github.com/oleg-balunenko/advent-of-code"
MODULE="github.com/obalunenko/advent-of-code"

GO_BUILD_PACKAGE="${MODULE}/cmd/aoc-cli/."

Expand Down
2 changes: 1 addition & 1 deletion scripts/cross-compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

REPO_ROOT=$(git rev-parse --show-toplevel)
APP="aoc-cli"
MODULE="github.com/oleg-balunenko/advent-of-code"
MODULE="github.com/obalunenko/advent-of-code"
VERSION=$(git describe --tags "$(git rev-list --tags --max-count=1)")"-local"
COMMIT_HASH=$(git rev-parse --short HEAD 2>/dev/null)
DATE=$(date "+%Y-%m-%d")
Expand Down
2 changes: 1 addition & 1 deletion scripts/fix-imports.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

if [[ -f "$(go env GOPATH)/bin/gci" ]] || [[ -f "/usr/local/bin/gci" ]]; then
gci -w -local=github.com/oleg-balunenko/ $(find . -type f -name "*.go" | grep -v "vendor/" | grep -v ".git")
gci -w -local=github.com/obalunenko/ $(find . -type f -name "*.go" | grep -v "vendor/" | grep -v ".git")
else
printf "Cannot check gogroup, please run:
go get -u -v github.com/daixiang0/gci/... \n"
Expand Down
Loading

0 comments on commit de51d63

Please sign in to comment.