Skip to content

Instantly share code, notes, and snippets.

View AspirantDrago's full-sized avatar
🏠
Working from home

Александр Николаевич Иванов AspirantDrago

🏠
Working from home
View GitHub Profile
class ReactNumber(Observerble, Observer):
def __init__(self, number: Union[int, float, Strategy]):
super().__init__(number)
self.value = number
@property
def value(self) -> Union[int, float]:
if self._number is None and self._strategy is not None:
self._number = self._strategy.eval()
return self._number
@rock3r
rock3r / .gitignore
Last active July 28, 2025 10:28
A template .gitignore for Kotlin projects using Gradle (with additional content for Android projects)
## Seb's .gitignore template
# You can find the most up-to-date version at https://go.sebastiano.dev/gitignore
# Partly based on templates by https://plugins.jetbrains.com/plugin/7495--ignore
# Released under a CC-0 License https://creativecommons.org/share-your-work/public-domain/cc0/
### Windows template
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db