Skip to content

Instantly share code, notes, and snippets.

View audunstrand's full-sized avatar
🤠

Audun Fauchald Strand audunstrand

🤠
View GitHub Profile

Keybase proof

I hereby claim:

  • I am audunstrand on github.
  • I am audunstrand (https://keybase.io/audunstrand) on keybase.
  • I have a public key ASAylCf7Yj_AHEdTLYd14g1qprUMsYa_ZusFi0toVHJ9Ego

To claim this, I am signing this object:

---
version: 2
namespace: default # the namespace to use
admin_access: false # What access the pod has to the k8s api server
has_secrets: false # if true, the application will get secrets as defined in hiearadata on ops1
replicas: 2 # The number of instances to run. Ceiling if autoscaler is enabled
autoscaler: # Autoscaler scales from min_replicas to fiaas.replicas (#replicas must be >1). Need fiaas.resources.requests.cpu. Scales up on mean cpu utilisation of >cpu_threshold_percentage. See https://kubernetes.io/docs/user-guide/horizontal-pod-autoscaling/
enabled: false
min_replicas: 2
cpu_threshold_percentage: 50

Can you beat the dealer at 21?

Model the game

  • create a single deck of playing cards
  • two players (called Sam and the Dealer) who will play against each other
  • each player is given two cards from the top of a shuffled deck of cards

Rules to implement

  • determine score of a hand[1]

Keybase proof

I hereby claim:

  • I am audunstrand on github.
  • I am audunstrand (https://keybase.io/audunstrand) on keybase.
  • I have a public key whose fingerprint is 1B47 308E D1D9 B578 D797 DA9C EA1E DF71 540C 2568

To claim this, I am signing this object: