mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Add small_config.yml for testing
Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
parent
ed1e6b2508
commit
1686c9a6a9
17
_sample_configs/small_config.yml
Normal file
17
_sample_configs/small_config.yml
Normal file
@ -0,0 +1,17 @@
|
||||
wtf:
|
||||
grid:
|
||||
columns: [20, 20]
|
||||
rows: [3, 3]
|
||||
refreshInterval: 1
|
||||
mods:
|
||||
uptime:
|
||||
type: cmdrunner
|
||||
args: [""]
|
||||
cmd: "uptime"
|
||||
enabled: true
|
||||
position:
|
||||
top: 0
|
||||
left: 0
|
||||
height: 1
|
||||
width: 1
|
||||
refreshInterval: 30
|
12
utils/sums.go
Normal file
12
utils/sums.go
Normal file
@ -0,0 +1,12 @@
|
||||
package utils
|
||||
|
||||
// SumInts takes a slice of ints and returns the sum of them
|
||||
func SumInts(vals []int) int {
|
||||
sum := 0
|
||||
|
||||
for _, a := range vals {
|
||||
sum += a
|
||||
}
|
||||
|
||||
return sum
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user