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
# Exercise A.0.1 - Cinnamon Buns Price Calculator | |
PRICE_REGULAR = 35 | |
DISCOUNT_RATE = 0.60 | |
num_buns = int(input("Enter the number of day-old Kanelbulle: ")) | |
# Price calculations | |
regular_price = num_buns * PRICE_REGULAR | |
discount_amount = regular_price * DISCOUNT_RATE |
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
#!/bin/bash | |
set -e | |
# Create global git hooks directory and configure git | |
mkdir -p ~/.git-hooks && git config --global core.hooksPath ~/.git-hooks | |
# Create the pre-commit hook | |
cat > ~/.git-hooks/pre-commit << 'EOF' | |
#!/bin/sh |
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
version: '3.3' | |
services: | |
observability: | |
image: jaegertracing/all-in-one:1.38 | |
ports: | |
- "6831:6831/udp" | |
- "6832:6832/udp" | |
- "5778:5778" | |
- "16686:16686" | |
- "4317:4317" |