Skip to content

Instantly share code, notes, and snippets.

View cagatayuresin's full-sized avatar
🐤

Çağatay ÜRESİN cagatayuresin

🐤
View GitHub Profile
@cagatayuresin
cagatayuresin / .gitignore
Created January 9, 2024 08:41
Ultimate Python Related Projects' gitignore File
# Ultimate Python Related Projects' gitignore File
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/

Interest Calculator

Python 3.10Python 3.11

Calculates the total amount of money and the interest earned based on the given capital, interest rate, and maturity period.

Usage

./interest_calculator.py -c 14000 -r 0.5 -t "day" -m 100
@cagatayuresin
cagatayuresin / fibonacci_generators.py
Last active December 14, 2023 08:46
Fibonacci Sequence Generator in Python
# Infinite Fibonacci Sequence
def fib_gen():
yield 1
a, b = 0, 1
while True:
yield a + b
b, a = a + b, b
# Limited Fibonacci Sequence
[options]
#
# WARNING:
# If you use the Odoo Database utility to change the master password be aware
# that the formatting of this file WILL be LOST! A copy of this file named
# /etc/odoo/openerp-server.conf.template has been made in case this happens
# Note that the copy does not have any first boot changes
#-----------------------------------------------------------------------------
# Odoo Server Config File - TurnKey Linux