Skip to content

Instantly share code, notes, and snippets.


Billie Thompson PurpleBooth

View GitHub Profile
PurpleBooth /
Last active Sep 30, 2019
The Bowling Kata in Nim Lang!


Create a class with 2 methods:

  • roll(self, pins)
  • score(self)

The rules for scoring are as follows

  • A game is 10 frames
  • Each frame can have up to 2 rolls
  • A spare is when you knock down all pins in a frame

Coin Changer Kata

You've just created a virtual vending machine that will dispense widgets of programming goodness when a user puts money into the machine. The machine should dispense the proper change. You now need the programming logic to determine which coins to dispense.

Write a program that will correctly determine the least number of coins to be given to the user such that the sum of the coins' value would equal the correct amount of change.





About this Kata

This Kata is about implementing a simple tennis game. I came up with it while thinking about Wii tennis, where they have simplified tennis, so each set is one game.

The scoring system is rather simple:

  1. Each player can have either of these points in one game

Mutation Testing

How good are the tests you've been writing all day, and yesterday?

The Command

We're going to use to run our mutation tests. There are a LOT of options for mutation testing in python, if you find a better one, tell me about it.

Installing into the environment


Mocking Exercises

These are a few exercises to get used to using mocking.


Take a list of array elements and group them.

[1, 2, 3, 4, 5]
View Pipfile
name = "pypi"
url = ""
verify_ssl = true
keras = "*"
tensorflow = "*"
View MessageSenderService.php
namespace Armakuni\Demo\PhpInserter;
use Google\Cloud\PubSub\PubSubClient;
class MessageSenderService
View CounterService.php
namespace Armakuni\Demo\PhpCounter;
use Google\Cloud\Datastore\DatastoreClient;
class CounterService
#!/usr/bin/env bash
docker build -t$(gcloud config get-value project)/simple-example:latest .
docker push$(gcloud config get-value project)/simple-example
gcloud beta run deploy --image$(gcloud config get-value project)/simple-example:latest
#!/usr/bin/env bash
docker build -t image-name .
docker run -e PORT=8080 -p 8080:8080 -d --name container-name image-name
docker logs container-name
curl localhost:8080
docker stop container-name