This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
print("Welcome to a game of Rock Paper Scissors!") | |
while True: | |
# ask whether to play rock, paper or scissors | |
user_choice = input("Choose one (rock, paper, scissors): ").strip().lower() | |
# validate input |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See https://docs.unity3d.com/Packages/[email protected]/manual/StyledText.html for an intro to rich text in Unity | |
/// <summary> | |
/// A set of extension methods for the <see cref="string"/> class | |
/// to make it fast and easy for you to stylize and log text. | |
/// </summary> | |
public static class StringExtensionsForUnity | |
{ | |
/// <summary>Bolds the given string by surrounding it with <b> tags.</summary> | |
public static string Bold(this string str) => $"<b>{str}</b>"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# How to use this Bash script: | |
# You can simply copy and paste the contents of this Bash script | |
# to your repository's .git/hooks/commit-msg file. | |
# Alternatively, copy and paste this file in your repository's .git/hooks | |
# directory and in commit-msg, type the following to execute this script: | |
# ./.git/hooks/check-commit-message.sh "$1" | |
# Note that the script exits with 0 when no issues are found, and 1 | |
# when issues are found. |