I hereby claim:
- I am metalmatze on github.
- I am metalmatze (https://keybase.io/metalmatze) on keybase.
- I have a public key ASBSYKeab6u3KX9MtcavrSSuo7MCJR7wOm6wCaCNVokkgAo
To claim this, I am signing this object:
| diff --git a/go/arrow/array/dictionary.go b/go/arrow/array/dictionary.go | |
| index 3a46774e5..f796a4f69 100644 | |
| --- a/go/arrow/array/numericbuilder.gen.go | |
| +++ b/go/arrow/array/numericbuilder.gen.go | |
| @@ -143,6 +143,10 @@ func (b *Int64Builder) Resize(n int) { | |
| } | |
| } | |
| +func (b *Int64Builder) Value(i int) int64 { | |
| + return b.rawData[i] |
| // Trying to reproduce https://github.com/thanos-io/thanos/issues/3726 | |
| // Add this somewhere (at the end) in the pkg/receive/handler_test.go | |
| // Run go test -bench=BenchmarkHandler ./pkg/receive | |
| func BenchmarkHandler(b *testing.B) { | |
| wreq1 := &prompb.WriteRequest{ | |
| Timeseries: []prompb.TimeSeries{ | |
| { | |
| Labels: []labelpb.ZLabel{{Name: "foo", Value: "bar"}}, | |
| Samples: []prompb.Sample{ |
| { | |
| "annotations": { | |
| "list": [ | |
| { | |
| "builtIn": 1, | |
| "datasource": "-- Grafana --", | |
| "enable": true, | |
| "hide": true, | |
| "iconColor": "rgba(0, 211, 255, 1)", | |
| "name": "Annotations & Alerts", |
I hereby claim:
To claim this, I am signing this object:
Doc: https://docs.google.com/document/d/1VVxx9DzpJPDgOZpZ5TtSHBRPuG5Fr3Vr6EFh8XuUpgs/edit#
| .demo-last-step |
| apiVersion: monitoring.coreos.com/v1 | |
| kind: Prometheus | |
| metadata: | |
| labels: | |
| prometheus: k8s | |
| name: k8s | |
| namespace: monitoring | |
| spec: | |
| alerting: | |
| alertmanagers: |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| ) | |
| // https://github.com/golang/go/tree/master/misc/wasm | |
| func main() { |
| // Subtract deals with subtraction of all types of number. | |
| func Subtract(left interface{}, right interface{}) interface{} { | |
| var rleft, rright int64 | |
| var fleft, fright float64 | |
| var isInt = true | |
| switch left.(type) { | |
| case int: | |
| rleft = int64(left.(int)) | |
| case int8: | |
| rleft = int64(left.(int8)) |
| <?php | |
| $a = array(1 => 'a', true => 'b', 'c', "2" => 'd', 2 => "e", 0x1 => "g", 2e0 => "h"); | |
| echo(count($a)); | |
| var_dump($a); |