Skip to content

Instantly share code, notes, and snippets.

View Broderick-Westrope's full-sized avatar
🍝
eating spaghetti code

Broderick Westrope Broderick-Westrope

🍝
eating spaghetti code
View GitHub Profile
@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active August 5, 2025 03:21
Conventional Commits Cheatsheet
@maratori
maratori / .golangci.yml
Last active August 4, 2025 10:55
Golden config for golangci-lint
# This file is licensed under the terms of the MIT license https://opensource.org/license/mit
# Copyright (c) 2021-2025 Marat Reymers
## Golden config for golangci-lint v2.3.1
#
# This is the best config for golangci-lint based on my experience and opinion.
# It is very strict, but not extremely strict.
# Feel free to adapt it to suit your needs.
# If this config helps you, please consider keeping a link to this file (see the next comment).
@keraf
keraf / Hangman.md
Last active March 16, 2025 00:38
Simple hangman game written in C# (.NET 6). This was done as an example for a friend who's learning programming.

Hangman

This is a simple hangman game written in C# (.NET 6). This was done as an example for a friend who's learning programming. Hopefully this can be useful to others as well.

How it works

  1. A word is selected from the list of words (value assigned to choosenWord).
  2. We initialize an empty array that will contain all the letters that have been submitted. This array is called letters.
  3. We also store a count of how many lives are left. This variable is called lives.
  4. The main game loop runs as long as the lives have not reached 0.
  5. Inside the loop, the following happens:
  6. We loop through each letter of the choosen word.