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
--- | |
version: "2" | |
services: | |
mysql_master: | |
image: mysql:8.0 | |
volumes: | |
- mysql-replica-main:/tmp | |
command: | |
[ | |
"mysqld", |
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 ( | |
"context" | |
"golang.org/x/oauth2/google" | |
"golang.org/x/oauth2/jwt" | |
"google.golang.org/api/calendar/v3" | |
"google.golang.org/api/option" | |
"log" | |
"time" |
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
on: | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "40 * * * *" | |
workflow_dispatch: # Manual | |
permissions: | |
contents: write |
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 ( | |
"testing" | |
) | |
/// Sample fuzz test for exploring fuzz testing functionality. | |
func FuzzSample(f *testing.F) { | |
testcases := []struct { | |
Num uint8 |
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 | |
/* | |
According to Go guidelines at https://go.dev/wiki/CodeReviewComments#declaring-empty-slices | |
When declaring an empty slice, prefer | |
var t []string | |
over |
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 com.victoreda.playground.services.exec; | |
import java.io.DataInputStream; | |
import java.io.EOFException; | |
import java.io.IOException; | |
import java.io.InputStream; | |
/** | |
* Reader for reading the attach stream from Docker. | |
* @author Victor Lyuboslavsky |