Skip to content

Instantly share code, notes, and snippets.

View adam-phillips's full-sized avatar

Adam Phillips adam-phillips

View GitHub Profile
defmodule NxDiabetes do
@moduledoc """
Documentation for `NxDiabetes`.
DataSet:
https://www.kaggle.com/uciml/pima-indians-diabetes-database
"""
alias NimbleCSV.RFC4180, as: CSV
require Axon
@jonesandy
jonesandy / XUnitAsserts.cs
Last active December 10, 2025 01:23
A cheat sheet of Asserts for xUnit.net in C#
/*
STRINGS
*/
Assert.Equal(expectedString, actualString);
Assert.StartsWith(expectedString, stringToCheck);
Assert.EndsWith(expectedString, stringToCheck);
// Some can also take optional params
Assert.Equal(expectedString, actualString, ignoreCase: true);
Assert.StartsWith(expectedString, stringToCheck, StringComparison.OrdinalIgnoreCase);
@lisawolderiksen
lisawolderiksen / git-commit-template.md
Last active March 3, 2026 14:19
Use a Git commit message template to write better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the