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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:c81db9b3da9f1e569785e363228b8b51d0b00b179b4637f15817ef495a5a5286" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
Compile this template by executing the following in a command shell:
pdflatex test && biber test && pdflatex test && pdflatex test
This template uses biblatex and biber instead of good old BibTeX. The bibliography files (*.bib
) can have the same format (although biblatex allows using some interesting extensions). However, the biblatex+biber combo is much more powerful than good-old BibTeX (e.g. support for multiple bibliographies in one document) and comes with great documentation.
Suggestions for improvements welcome.
import pandas as pd
import numpy as np
from tabulate import tabulate
df = pd.DataFrame(np.random.random((4,3)), columns=['A','B','C'])
print("foo")
return(tabulate(df, headers="keys", tablefmt="orgtbl"))
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
#!/bin/bash | |
# Here are some embedded Python examples using Python3. | |
# They are put into functions for separation and clarity. | |
# Simple usage, only using python to print the date. | |
# This is not really a good example, because the `date` | |
# command works just as well. | |
function date_time { |
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
#!/bin/bash | |
coproc bluetoothctl | |
echo -e 'scan on\n' >&${COPROC[1]} | |
sleep 3 | |
echo -e 'remove AA:AA:AA:AA:AA:AA\n' >&${COPROC[1]} | |
sleep 1 | |
echo -e 'pair AA:AA:AA:AA:AA:AA\n' >&${COPROC[1]} | |
sleep 1 |