This is tested on OS X 10.11.6 running on a MacBook Pro with NVIDIA GeForce GT 750M as of Tuesday, November 22, 2016; if you are note sure about your system, run
sw_vers
| [filter "handle-ipynb-output"] | |
| clean = "jupyter nbconvert --to notebook --NbConvertApp.from_stdin=True --ClearOutputPreprocessor.enabled=True --NbConvertApp.writer_class=StdoutWriter" | |
| smudge = cat |
| #!/bin/bash | |
| rc="$HOME/.bashrc" | |
| jars="$HOME/.labprog-jars" | |
| if [ ! -w "$rc" ]; then | |
| echo "Attenzione, il file .bashrc non era presente, l'installazione potrebbe fallire" | |
| fi | |
| if grep -q "### labprog-firma (non cancellare questa riga e le seguenti)" "$rc"; then |
| import static org.junit.Assert.assertEquals; | |
| import java.util.Arrays; | |
| import java.util.Comparator; | |
| import java.util.Iterator; | |
| import java.util.List; | |
| import org.junit.Test; | |
| public class LexicographicListComparator { |
| #!/bin/bash | |
| if ! type jq >/dev/null 2>&1; then | |
| echo >&2 "$(basename $0): please install https://stedolan.github.io/jq/ first." | |
| exit 1 | |
| fi | |
| if [ -z "$1" ]; then | |
| echo >&2 "$(basename $0): plase provide stop number (see http://giromilano.atm.it/)" | |
| exit 1 |
| from json import loads, dumps | |
| from base64 import b64decode, b64encode | |
| def relocate( conf_data, old_path, new_path ): | |
| def rdt( dct ): | |
| for k, v in dct.items(): | |
| if isinstance( v, dict ): | |
| rdt( v ) | |
| else: |
| have b2 && | |
| _b2 () { | |
| local _b2_subcommands=( | |
| 'authorize_account' | |
| 'clear_account' | |
| 'create_bucket' | |
| 'delete_bucket' | |
| 'delete_file_version' | |
| 'download_file_by_id' | |
| 'download_file_by_name' |
A Pen by Massimo Santini on CodePen.