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
| """ | |
| Transformer in ~80 lines of code. | |
| From Thomas Wolf's tweet https://twitter.com/Thom_Wolf/status/1129658539142766592. | |
| """ | |
| import torch | |
| from torch import nn | |
| class Transformer(nn.Module): |
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
| from IPython.display import display | |
| import pandas as pd | |
| def pdshow(df): | |
| """ | |
| This shows a pandas dataframe in full/ | |
| Also consider .to_html() and https://pbpython.com/dataframe-gui-overview.html |
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 bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
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 | |
| TEMPFILE='/tmp/restic_ignores.txt' | |
| BACKUPDIR=$HOME | |
| # Note: Not sure which way is better, echo nothing into the file, or remove if exists | |
| # if [ -f $TEMPFILE ]; then | |
| # rm $TEMPFILE | |
| # fi | |
| # touch $TEMPFILE |
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
| # This is an example PKGBUILD file. Use this as a start to creating your own, | |
| # and remove these comments. For more information, see 'man PKGBUILD'. | |
| # NOTE: Please fill out the license field for your package! If it is unknown, | |
| # then please put 'unknown'. | |
| # Maintainer: Your Name <youremail@domain.com> | |
| pkgname=NAME | |
| pkgver=VERSION | |
| pkgrel=1 | |
| epoch= |
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 | |
| # stock-bankier.sh | |
| # Getting stock, some currency data from bankier.pl | |
| # Supported currency: EUR, USD | |
| # | |
| # usage: | |
| # ./stock-bankier.sh ticker | |
| # sample tickers: | |
| # MERCATOR | |
| # WIG20 |
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 | |
| # bankier.sh | |
| # Getting stock data from bankier.pl | |
| # | |
| # usage: | |
| # ./bankier.sh ticker | |
| # sample tickers: | |
| # WIG | |
| # WIG20 | |
| # mWIG40 |
Purpose:
- describe what can be achieved with this notebook
- what is the role of the notebook in relation to other notebooks in the project
Created by: Author Name
Jira: PROJ-230