title | author | date | categories | tags | ||||
---|---|---|---|---|---|---|---|---|
Note of async and unsync programming in Python |
Zefeng Zhu |
2020-08-13 17:40:00 +0800 |
|
|
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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 IPython.core.magic import register_line_magic | |
@register_line_magic | |
def styledf(line): | |
"""Style Pandas DataFrame | |
Usage: | |
>>> %styledf pandas.DataFrame | |
This file contains 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
# Copyright (C) 2002, Thomas Hamelryck (thamelry@binf.ku.dk) | |
# | |
# This file is part of the Biopython distribution and governed by your | |
# choice of the "Biopython License Agreement" or the "BSD 3-Clause License". | |
# Please see the LICENSE file that should have been included as part of this | |
# package. | |
"""Turn an mmCIF file into a dictionary.""" | |
This file contains 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
# @Created Date: 2020-08-04 22:16:21 pm | |
# @Filename: dagdeps_unsync.py | |
# @Email: 1730416009@stu.suda.edu.cn | |
# @Author: ZeFeng Zhu | |
# @Last Modified: 2020-08-05 15:22:07 pm | |
""" | |
Example for generating an arbitrary DAG as a dependency map (single machine, unsync version). | |
Modification on MinRK's code | |
Reference |
This file contains 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
# @Created Date: 2020-05-17 07:56:52 pm | |
# @Filename: dagdeps.py | |
# @Email: 1730416009@stu.suda.edu.cn | |
# @Author: ZeFeng Zhu | |
# @Last Modified: 2020-05-17 08:32:11 pm | |
""" | |
Example for generating an arbitrary DAG as a dependency map (single machine, async version). | |
Modification on MinRK's code |
NewerOlder