Skip to content

Instantly share code, notes, and snippets.


Hugh Sorby hsorby

  • University of Auckland
View GitHub Profile
hsorby /
Created Apr 21, 2021
2021 CellML Workshop - libCellML Python scripts
import libcellml
p = libcellml.Parser()
with open('New_Modular_Model.cellml') as f:
contents =
m = p.parseModel(contents)
hsorby / encrypt.js
Last active Feb 25, 2021
Simple node script to encrypt a token for use with libCellML website.
View encrypt.js
// 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
// node encrypt.js <your-token>