kubectl config get-contexts
kubectl config current-context
kubectl config use-context my-cluster-name
import kotlinx.coroutines.* | |
import org.junit.jupiter.api.Test | |
import org.slf4j.LoggerFactory | |
import java.math.BigInteger | |
import java.util.* | |
import kotlin.system.measureTimeMillis | |
import kotlin.time.ExperimentalTime | |
import kotlin.time.measureTimedValue | |
class ConcurrencyVsParallelismTest { |
module Bowling where | |
import Data.Char (digitToInt) | |
import Data.List.Split (splitOn) | |
toInt = digitToInt | |
data Score = Strike | Points Int Int | None | Spare Int | |
deriving (Eq, Show) |
module FizzBuzz where | |
import Data.Maybe | |
import Data.List | |
import Data.Char (digitToInt) | |
type Rule = Int -> Maybe String | |
fizz = oR (word 3 "fizz") (contains 3 "fizz") | |
buzz = word 5 "buzz" |
var AbstractClass = (function(){ | |
function AbstractClass() { | |
if (this.constructor === AbstractClass) { | |
throw new Error("Can't instantiate abstract class!"); | |
} | |
}; |
//father class | |
var classA = (function() { | |
function classA() { | |
this.val1 = "a"; | |
} | |