Skip to content

Instantly share code, notes, and snippets.

View mhiro2's full-sized avatar
:octocat:

Masaaki Hirotsu mhiro2

:octocat:
View GitHub Profile
$ istioctl replace -f samples/bookinfo/routing/route-rule-ratings-test-abort.yaml
Updated config virtual-service/default/ratings to revision 45992
$ istioctl get virtualservice ratings -o yaml
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
creationTimestamp: null
name: ratings
namespace: default
resourceVersion: "45992"
from kedro.pipeline import Pipeline, node
def mean(xs, n):
return sum(xs) / n
def mean_sos(xs, n):
return sum(x*x for x in xs) / n