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 | |
import "testing" | |
/** | |
go test -v -bench=. | |
goos: linux | |
goarch: amd64 | |
pkg: github.com/ggirtsou/benchmark | |
BenchmarkSliceLookup-8 200000 6651 ns/op |
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 | |
import ( | |
"testing" | |
) | |
/* | |
go test -v . | |
=== RUN TestBinarySearch | |
--- PASS: TestBinarySearch (0.00s) |
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
#/bin/bash | |
set -x | |
set -e | |
repos=(ai-labs cloud-backup cloud-cli cloud-compute cloud-configuration cloud-container-registry cloud-dashboard cloud-database cloud-dns cloud-identity cloud-key-management cloud-load-balancer cloud-memory-db cloud-networking cloud-nosql-db cloud-orchestrator cloud-persistent-volume cloud-protect cloud-pubsub cloud-rdbms-db cloud-search-engine cloud-storage cloud-time-series-db code-build monitoring-agent monitoring-aggregation monitoring-alerting monitoring-anomaly-detection monitoring-collection monitoring-processing monitoring-visualisation video-conference) | |
for repo in "${repos[@]}" | |
do | |
cd $repo && \ |
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
#/bin/bash | |
set -x | |
set -e | |
repos=(ai-labs.git cloud-backup.git cloud-cli.git cloud-compute.git cloud-configuration.git cloud-container-registry.git cloud-dashboard.git cloud-database.git cloud-dns.git cloud-identity.git cloud-key-management.git cloud-load-balancer.git cloud-memory-db.git cloud-networking.git cloud-nosql-db.git cloud-orchestrator.git cloud-persistent-volume.git cloud-protect.git cloud-pubsub.git cloud-rdbms-db.git cloud-search-engine.git cloud-storage.git cloud-time-series-db.git code-build.git monitoring-agent.git monitoring-aggregation.git monitoring-alerting.git monitoring-anomaly-detection.git monitoring-collection.git monitoring-processing.git monitoring-visualisation.git video-conference.git) | |
for repo in "${repos[@]}" | |
do | |
cd $repo && git init --bare && cd ../ |
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
#!/bin/bash | |
END=$(ls -l | grep ".html" | wc -l) | |
START=1 | |
for (( i=$START; i<=$END; i++ )) | |
do | |
cat ./$i.html | grep -oE "<title>.*</title>" | sed 's/<title>/'"$i"'.html /' | sed 's/<\/title>//' | head -n 1; | |
done |
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 | |
import ( | |
"strings" | |
"sync" | |
"github.com/davecgh/go-spew/spew" | |
) | |
func main() { |
OlderNewer