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
import libcellml | |
p = libcellml.Parser() | |
with open('New_Modular_Model.cellml') as f: | |
contents = f.read() | |
m = p.parseModel(contents) | |
print(m.componentCount()) |
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
// Instructions: | |
// Create a temporary directory and inside that directory install crypto-js. | |
// Then run the encrpyt.js script with node and pass your token as the first argument. | |
// | |
// Terminal commands: | |
// mkdir tmp | |
// cd tmp | |
// npm i crypto-js | |
// curl -o encrypt.js https://gist.githubusercontent.com/hsorby/4a091a16f9851044742a5de593ba974b/raw/587338203ce7b9dcc0baf0894f3d1d547a37a7a4/encrypt.js | |
// node encrypt.js <your-token> |