This file has been truncated, but you can view the full file.
This file has been truncated, but you can view the full file.
This file has been truncated, but you can view the full file.
This file has been truncated, but you can view the full file.
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
| # When loading data with scipy.io.loadmat the information is terribly deep encapsulated in structured arrays. | |
| # This function returns some nice simplified python types. | |
| def unnumpyfy(arr): | |
| if isinstance(arr, (np.ndarray,)): | |
| if arr.dtype == np.dtype('O') or arr.dtype.names is None: | |
| try: | |
| return unnumpyfy(arr.item()) | |
| except ValueError: | |
| tmplist = arr.squeeze() |
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 | |
| CDIR=`pwd` | |
| TDIR=`mktemp -d` | |
| DOCXFN=$(basename "$1") | |
| MDFN=${DOCXFN%.docx}.md | |
| echo "Converting: $DOCXFN" | |
| cp "$1" $TDIR | |
| cd $TDIR | |
| ebook-convert $DOCXFN output.htmlz | |
| unzip output.htmlz |
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
| #!/usr/bin/env python | |
| import requests | |
| def compile2pdf(ifile, ofile): | |
| """ | |
| Sends the tex file to sciencesoft.at and compiles it to pdf. | |
| requires two file objects. | |
| """ |
NewerOlder