title | author | date | categories | tags | ||||
---|---|---|---|---|---|---|---|---|
Note of async and unsync programming in Python |
Zefeng Zhu |
2020-08-13 17:40:00 +0800 |
|
|
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 |
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
# 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
from IPython.core.magic import register_line_magic | |
@register_line_magic | |
def styledf(line): | |
"""Style Pandas DataFrame | |
Usage: | |
>>> %styledf pandas.DataFrame | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Note: this gist is heavily based on materials provided by organizers of the Mining PDBe and PDBe-KB Using a Graph Database workshop.
Note: this gist is foke from PawelSzczerbiak/pdbe-kb.md
.
Graph DBs are much more useful for representing unstructured, sparse data and relationships than conventional relational DBs.
Graph is a structure that models pairwise relations between objects:
```viz
digraph flowchart_4 {
# rankdir=LR;
fontname="Courier New";
size="6,5"; ratio = fill;
node [style="filled,setlinewidth(3)", color="#8383cc", fontname="Courier New", shape="Mrecord",fixedsize=true,width=2.5,fillcolor="#d9e7ee"];
edge [color="0.635 0.707 0.707", fontname="Courier New"];
label="从头预测与结构建模";
# step1[label="数据准备"];
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer