Test files for https://github.com/qedus/osmpbf.
View gist:13afc22c0d62008118f5633c8341f9a4
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
pi@raspberrypi:~/gimme $ ./gimme -k | |
+ readonly GIMME_VERSION=v1.3.0 | |
+ GIMME_VERSION=v1.3.0 | |
+ readonly 'GIMME_COPYRIGHT=Copyright (c) 2015-2018 gimme contributors' | |
+ GIMME_COPYRIGHT='Copyright (c) 2015-2018 gimme contributors' | |
+ readonly GIMME_LICENSE_URL=https://raw.githubusercontent.com/travis-ci/gimme/v1.3.0/LICENSE | |
+ GIMME_LICENSE_URL=https://raw.githubusercontent.com/travis-ci/gimme/v1.3.0/LICENSE | |
+ export GIMME_VERSION | |
+ export GIMME_COPYRIGHT | |
+ export GIMME_LICENSE_URL |
View strip-whitespace.go
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 ( | |
"bufio" | |
"flag" | |
"log" | |
"os" | |
"path/filepath" | |
"strings" | |
"unicode" |
View keybase.md
Keybase proof
I hereby claim:
- I am AlekSi on github.
- I am aleksi (https://keybase.io/aleksi) on keybase.
- I have a public key whose fingerprint is 21A0 6D92 5A1F 0A15 D751 77EE DD17 A8A6 EF9C 4CDE
To claim this, I am signing this object:
View meetup.txt
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
Привет, | |
Пройти на митап смогут только люди, у которых сейчас стоит RSVP: Yes, и у которых имена и фамилии написаны на русском языке. Ниже подробно описано почему так произошло (TL;DR: правила регистрации были плохо сообщены; я виноват; в следующий раз будет лучше). | |
Митап был создан 13-ого апреля, с тихим анонсом в https://golang-ru.slack.com и некоторых других местах. Официальный анонс состоялся в блоге Badoo на Хабре (https://habrahabr.ru/company/badoo/blog/282606/) 27-ого числа, и сразу после этого во всех остальных местах. Мы с Badoo договорились, что регистрация будет только на meetup.com, что имя и фамилия должны быть указаны на русском языке как в паспорте, что будет нужен он или другой документ для проходе в офис Badoo. Дело в том, что прошлый митап, который проходил там (Zabbix Meetup), оставил их закопанными в списках. :) Однако я сообщил об этом только 27-ого числа, не 13-ого. | |
29-ого апреля, закончив первую часть подготовки, я улетел в отпуск, где не слишком активно проверял почту и страницу мита |
View main.go
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 ( | |
"encoding/json" | |
"math" | |
"time" | |
"github.com/labstack/echo" | |
"github.com/labstack/gommon/log" | |
) |
View gist:7885d53bc23e12ad0c79
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(err error) { | |
if err != nil { | |
panic(err) | |
} | |
} | |
func (h *APIHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) { | |
defer func() { | |
if p := recover(); p != nil { | |
switch e := p.(type) { |
View replace_test.go
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 replace | |
import ( | |
"fmt" | |
"strings" | |
"testing" | |
) | |
var keys []string |
View gist:7233263
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
panic: interface conversion: error is *os.PathError, not *exec.ExitError | |
goroutine 1 [running]: | |
main.main() | |
/tmp/tmp.9cy9ejlFpP/conq.go:124 +0xcc7 | |
goroutine 2 [syscall]: | |
goroutine 5 [runnable]: | |
net/http.(*persistConn).readLoop(0xc2000c4180) |
View main.go
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" | |
"io" | |
"log" | |
"net" | |
"sync" | |
) |
NewerOlder