Skip to content

Instantly share code, notes, and snippets.

View slykar's full-sized avatar

Sylwester Kardziejonek slykar

View GitHub Profile
@slykar
slykar / fizzbuzz.py
Created March 30, 2020 18:21
Declarative FizzBuzz in Python
FROM = 1
TO = 100
DIVIDERS = [
(3, "Fizz"),
(5, "Buzz"),
(7, "Kazz") # or any other (div, word) pair
]
for n in range(FROM, TO):
@slykar
slykar / mypy.py
Created July 9, 2024 17:35
Faster PyCharm mypy plugin with daemon dmypy
#!/usr/bin/env python3
import argparse
import os
import subprocess
import sys
STATUS_FILE = os.path.join(os.path.dirname(__file__), ".dmypy.json")