Build starting from a Jupyter 2.x image.
docker build -t jupyterlab .
link_to_tmp() { | |
# define colors | |
local RED = '\033[31m' # mode 31 = red forground | |
local GREEN = '\033[32m' # mode 32 = green forground | |
local RESET = '\033[0m' # mode 0 = reset | |
# no input given | |
if [ $# -eq 0 ] | |
then | |
local INPUT=$PWD |
## using natbib | |
## when finished adding refs, run | |
bibexport --nosave -o [LOCAL_BIB_FILE] main.aux | |
## then switch the \bibliography command from the central file to the local one, ie change | |
# % \bibliography{[CENTRAL_BIB_FILE]} | |
# % \bibliography{[LOCAL_BIB_FILE]} | |
# % with biblatex you would run something like | |
jabref -n --aux main.aux,[LOCAL_BIB_FILE] [CENTRAL_BIB_FILE] | |
## and again switch which bib file you're working with |
# -*- coding: utf-8 -*- | |
# NOTE: richiede intallazione di jinja via pip install jinja2 | |
# NOTE: testato su | |
import urllib.request | |
import csv | |
from datetime import datetime | |
from jinja2 import Template | |
import io | |
def cazzillo_text_parser(cazzillotext): |
#!/usr/bin/python | |
# https://timwise.co.uk/2014/02/03/converting-kml-to-gpx-with-python/ | |
# https://gist.github.com/timabell/8791116 | |
import argparse | |
import xml.sax | |
parser = argparse.ArgumentParser(description='Convert annoying google android my tracks kml data to sensible gpx files') | |
parser.add_argument('input_file') |
#! /usr/bin/env python | |
# Brain-dead simple utility to dump a list of annotations from a Sony Reader .db | |
# Usage: $ python annot2html.py [int number of annot to fetch] | |
import sys | |
import sqlite3 as sql | |
import xml.etree.ElementTree as ET | |
# Mac-path! | |
file_db = sql.connect('/Volumes/READER/Sony_Reader/database/books.db') |
#!/bin/bash | |
# | |
# Copy data from a Time Machine volume mounted on a Linux box. | |
# | |
# Usage: copy-from-time-machine.sh <source> <target> | |
# | |
# source: the source directory inside a time machine backup | |
# target: the target directory in which to copy the reconstructed | |
# directory trees. Created if it does not exists. | |
# |
#!/bin/bash | |
if [ "$1" = "-h" -o "$1" = "--help" -o -z "$1" ]; then cat <<EOF | |
appify v3.0.1 for Mac OS X - http://mths.be/appify | |
Creates the simplest possible Mac app from a shell script. | |
Appify takes a shell script as its first argument: | |
`basename "$0"` my-script.sh |