Skip to content

Instantly share code, notes, and snippets.

@xray
xray / keybase.md
Created January 14, 2020 21:28
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@xray
xray / Inheritance.cs
Last active June 7, 2019 16:07
An example of inheritance in C#
using System;
public class Dog
{
public void Bark()
{
Console.WriteLine("Woof");
}
}
@xray
xray / Composition.cs
Last active June 7, 2019 16:54
An example of composition in C#
using System;
public interface IMovement
{
void Fly();
}
public class AerialMovement : IMovement
{
public static void Fly()
@xray
xray / .gitignore
Last active December 17, 2018 20:54
C# Project Setup Tutorial
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.
# User-specific files
*.suo
*.user
*.sln.docstates
# Xamarin Studio / monodevelop user-specific
*.userprefs
@xray
xray / iteration_one.py
Last active December 10, 2018 18:34
The bowling game kata
ROLL_ONE = 0
ROLL_TWO = 1
ROLL_THREE = 2
STRIKE = 10
class Score:
def __init__(self):
self.score = 0
def get_roll_total(self, frame_rolls):