Added mon_quorum panel to ceph-cluster dashboard
This commit is contained in:
parent
0635aaa5ae
commit
00347310c1
3
.vscode/launch.json
vendored
3
.vscode/launch.json
vendored
|
|
@ -9,7 +9,8 @@
|
||||||
"type": "go",
|
"type": "go",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"mode": "auto",
|
"mode": "auto",
|
||||||
"program": "${fileDirname}"
|
"program": "${fileDirname}",
|
||||||
|
"console": "integratedTerminal"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
3
headFirst/first/go.mod
Normal file
3
headFirst/first/go.mod
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
module first
|
||||||
|
|
||||||
|
go 1.24.5
|
||||||
25
headFirst/first/main.go
Normal file
25
headFirst/first/main.go
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"fmt"
|
||||||
|
"log"
|
||||||
|
"os"
|
||||||
|
"strconv"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println("Enter a grade")
|
||||||
|
reader := bufio.NewReader(os.Stdin)
|
||||||
|
input,err := reader.ReadString('\n')
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
input = strings.TrimSpace(input)
|
||||||
|
grade,_ := strconv.Atoi(input)
|
||||||
|
if grade > 60 {
|
||||||
|
fmt.Println("Passes")
|
||||||
|
}
|
||||||
|
fmt.Println(input)
|
||||||
|
}
|
||||||
3
headFirst/second/go.mod
Normal file
3
headFirst/second/go.mod
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
module second
|
||||||
|
|
||||||
|
go 1.24.5
|
||||||
40
headFirst/second/main.go
Normal file
40
headFirst/second/main.go
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"bufio"
|
||||||
|
"fmt"
|
||||||
|
"log"
|
||||||
|
"math/rand"
|
||||||
|
"os"
|
||||||
|
"strconv"
|
||||||
|
"strings"
|
||||||
|
"time"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
success := false
|
||||||
|
seconds := time.Now().Unix
|
||||||
|
rand.Seed(seconds())
|
||||||
|
target := rand.Intn(100)
|
||||||
|
fmt.Println(target)
|
||||||
|
for i := 0; i < 3; i++ {
|
||||||
|
fmt.Print("Enter: ")
|
||||||
|
reader := bufio.NewReader(os.Stdin)
|
||||||
|
input,_ := reader.ReadString('\n')
|
||||||
|
input = strings.TrimSpace(input)
|
||||||
|
guess,err := strconv.Atoi(input)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal("lolkek")
|
||||||
|
}
|
||||||
|
if guess != target {
|
||||||
|
fmt.Println("ИДИ НАХУЙ")
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
fmt.Println("УГАДАЛ, ПЕТУШОК!")
|
||||||
|
success = true
|
||||||
|
break
|
||||||
|
}
|
||||||
|
if !success {
|
||||||
|
fmt.Printf("Ебать ты лошара! Число - %d \n",target)
|
||||||
|
}
|
||||||
|
}
|
||||||
3
headFirst/third/go.mod
Normal file
3
headFirst/third/go.mod
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
module third
|
||||||
|
|
||||||
|
go 1.24.5
|
||||||
8
headFirst/third/main.go
Normal file
8
headFirst/third/main.go
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
package main
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
lol := 0.4444
|
||||||
|
fmt.Printf("\nthis is float %#v\n",lol)
|
||||||
|
}
|
||||||
|
|
@ -1,13 +1,25 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "fmt"
|
import (
|
||||||
|
"bufio"
|
||||||
|
"fmt"
|
||||||
|
"log"
|
||||||
|
"os"
|
||||||
|
"strconv"
|
||||||
|
"strings"
|
||||||
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
var loop_var int = 10
|
fmt.Println("Enter a grade")
|
||||||
|
reader := bufio.NewReader(os.Stdin)
|
||||||
for loop_var <= 20 {
|
input,err := reader.ReadString('\n')
|
||||||
fmt.Printf("Current is %d\n",loop_var)
|
fmt.Print(strings.TrimSpace(input))
|
||||||
loop_var++
|
grade,err := strconv.Atoi(input)
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
if input > 60 {
|
||||||
|
fmt.Println("Passes")
|
||||||
|
}
|
||||||
|
fmt.Println(input)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user