kawasaki@k8s-1:~$ kubectl apply -f https://raw.githubusercontent.com/mysql/mysql-operator/trunk/deploy/deploy-crds.yaml
customresourcedefinition.apiextensions.k8s.io/innodbclusters.mysql.oracle.com created
customresourcedefinition.apiextensions.k8s.io/mysqlbackups.mysql.oracle.com created
customresourcedefinition.apiextensions.k8s.io/clusterkopfpeerings.zalando.org created
This file contains hidden or 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
| #!/usr/bin/env bash | |
| source $SDKMAN_DIR/bin/sdkman-init.sh | |
| if [ "$1" == 'exec' ]; then | |
| ${@:2}; | |
| else | |
| sdk $@; | |
| fi |
This file contains hidden or 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
| interface Static<T> | |
| data class Target(val a: Int) { | |
| companion object : Static<Target> | |
| } | |
| interface From<T, U> { | |
| fun Static<T>.from(value: U) : T | |
| } |
This file contains hidden or 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
| # | |
| # Arguments | |
| # ============== | |
| # - DOCKER_IMAGE | |
| # - DOCKER_TAG | |
| # - AWS_ACCOUNT_ID | |
| # - AWS_DEFAULT_REGION | |
| # | |
| docker.build: |
This file contains hidden or 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
| TMPDIR ?= /tmp | |
| .PHONY := encrypt decrypt cmk dependencies | |
| .DEFAULT_GOAL := dependencies | |
| encrypt: dependencies | |
| $(call exit_invalid_arguments,$(ENCRYPT_KEY),"$$USAGE_ENCRYPT") |
This file contains hidden or 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
| fibonacci :: (Num a) => [a] | |
| fibonacci = f 0 1 | |
| where f x y = x : f y (x + y) | |
| -- Prelude> fibonacci !! 45 | |
| -- 1134903170 | |
| -- (0.00 secs, 3131752 bytes) |
This file contains hidden or 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
| startWith :: (Eq a) => [a] -> [a] -> Maybe [a] | |
| startWith [] ys = Just ys | |
| startWith xs [] = Nothing | |
| startWith (x:xs) (y:ys) | |
| | x == y = startWith xs ys | |
| | otherwise = Nothing | |
| split :: (Eq a) => [a] -> [a] -> [[a]] | |
| split [] lst = [lst] | |
| split sep lst = split' [] lst |
This file contains hidden or 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
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE UndecidableInstances #-} | |
| {-# LANGUAGE IncoherentInstances #-} | |
| class YesNo a where | |
| yesno :: a -> Bool | |
| instance (Num a, Eq a) => YesNo a where | |
| yesno 0 = False | |
| yesno _ = True |
This file contains hidden or 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
| myFoldr :: (a -> b -> b) -> b -> [a] -> b | |
| myFoldr _ a [] = a | |
| myFoldr f a (x:xs) = f x $ myFoldr f a xs | |
| myFoldr1 :: (a -> a -> a) -> [a] -> a | |
| myFoldr1 f (x:xs) = myFoldr f x xs | |
| myFoldl :: (b -> a -> b) -> b -> [a] -> b | |
| myFoldl _ a [] = a | |
| myFoldl f a (x:xs) = myFoldl f (f a x) xs |
NewerOlder