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
| 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 |
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
| ## 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 |