Skip to content

Instantly share code, notes, and snippets.

View jabooticaba's full-sized avatar

Vladimir Gorbovskiy jabooticaba

View GitHub Profile

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@jabooticaba
jabooticaba / python_dual_log_setup.py
Created October 14, 2021 16:47 — forked from fonic/python_dual_log_setup.py
Python dual-logging setup (console and log file) supporting different log levels and colorized output
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# -------------------------------------------------------------------------------
# -
# Python dual-logging setup (console and log file), -
# supporting different log levels and colorized output -
# -
# Created by Fonic <https://github.com/fonic> -
# Date: 04/05/20 -
@jabooticaba
jabooticaba / script.py
Created May 5, 2021 17:39
генератор
def id_generator():
for i in range(1, 10001):
yield i
gen = id_generator()
class Employee:
def __init__(self, name, id =''):
@jabooticaba
jabooticaba / script.py
Created April 5, 2021 09:07
12.7.3 exersice
per_cent = {'ТКБ': 5.6, 'СКБ': 5.9, 'ВТБ': 4.28, 'СБЕР': 4.0}
money = int(input('Введите сумму: '))
# Вычисление процента от введённого числа для каждого значения словаря, конвертация в список целочисленных значений
s = list(map(int, map(lambda x: money / 100 * x, per_cent.values())))
print(s)
print(f'Максимальная сумма, которую вы можете заработать — {max(s)}')