-
Install the termux app for Android
-
Open Termux
-
Install google-cloud-sdk by
# install dependencies pkg install python2 curl
This file contains hidden or 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 | |
func main() { | |
var in string := "ACBBBCAACBBAAAC" | |
// 1. Определить длину строки in | |
// 2. Вывести на экран определенную длину строки | |
println( ) | |
This file contains hidden or 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 config | |
import ( | |
"net/http" | |
"regexp" | |
"strings" | |
) | |
// idPatterns describes patterns of IDs in URLs. These patterns are matched | |
// against an entire URL. These patterns are used as given without any |
This file contains hidden or 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 | |
// live https://goplay.space/#qUqusVmj8oV | |
import ( | |
"context" | |
"fmt" | |
) | |
func NewService(l *Logger) *Service { | |
return &Service{ |
This file contains hidden or 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
// try https://goplay.space/#P8MtNeGIX69 | |
import ( | |
"os" | |
"github.com/go-kit/kit/log" | |
) | |
func Msg(s string) []interface{} { | |
return []interface{}{ | |
"msg", |
Из статьи You're not actually building microservices
Итак, вы создаете микросервисы?
Взгляните на некоторые из этих симптомов и проставьте галочки, где вы согласны:
- Изменение одного микросервиса часто требует изменений в других микросервисах (сильная связанность)
Russian version here
So, are you building microservices? Take a look at a few of these symptoms, and decide for yourself:
- A change to one microservice often requires changes to other microservices
- Deploying one microservice requires other microservices to be deployed at the same time
- Your microservices are overly chatty
- The same developers work across a large number of microservices
Read about RDD here https://vporoshok.me/post/2019/10/rdd/
This file contains hidden or 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 version | |
import ( | |
"bytes" | |
"fmt" | |
"runtime" | |
"strings" | |
"github.com/prometheus/client_golang/prometheus" | |
) |