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
| #!/bin/bash | |
| git clone git@github.com:licit-lab/symuflow-dev.git symuflow | |
| cd symuflow | |
| git checkout dev | |
| conda env create -f conda/env.yaml | |
| conda install -c conda-forge cmake -y | |
| conda install -c anaconda make -y | |
| conda install -c anaconda clangxx_osx-64 -y | |
| mkdir build | |
| cd build |
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
| from collections import Counter | |
| if __name__ == "__main__": | |
| txt = "This is a vast world you can't traverse world in a day" | |
| counts = Counter(txt.split()) | |
| print("Here is a sample of counts: ", counts) | |
| print("The most common elements are: ", counts.most_common(2)) |
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
| from dataclasses import dataclass, field | |
| @dataclass | |
| class A: | |
| x: int = 1 | |
| y: int = 2 | |
| z: int = 3 | |
| def __init__(self, **kwargs): |
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
| """ Different signature multiple inheritance | |
| """ | |
| # Explicit is better than implicit | |
| class A: | |
| def __init__(self, a, b): | |
| print( | |
| "Init {} with arguments {}".format(self.__class__.__name__, (a, b)) |
People
:bowtie: |
๐ :smile: |
๐ :laughing: |
|---|---|---|
๐ :blush: |
๐ :smiley: |
:relaxed: |
๐ :smirk: |
๐ :heart_eyes: |
๐ :kissing_heart: |
๐ :kissing_closed_eyes: |
๐ณ :flushed: |
๐ :relieved: |
๐ :satisfied: |
๐ :grin: |
๐ :wink: |
๐ :stuck_out_tongue_winking_eye: |
๐ :stuck_out_tongue_closed_eyes: |
๐ :grinning: |
๐ :kissing: |
๐ :kissing_smiling_eyes: |
๐ :stuck_out_tongue: |
NewerOlder

