Skip to content

Instantly share code, notes, and snippets.

@pdemarti
pdemarti / s3-fast-upload.ipynb
Last active June 7, 2024 18:00
Example (from a notebook) on how to exploit the concurrency inside boto3 for fast uploads of many files
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pdemarti
pdemarti / anaconda-get-installer.sh
Created September 27, 2019 02:53
Download the latest (or any specified version) of Anaconda3 installer script.
#!/bin/sh
# PD 2018-05-01
# Get the latest Anaconda installer (or a specified version). If already present, skip downloading.
OPTIND=1
output_dir="."
show_help() {
echo "usage: $0 [-v version] [-d output_dir]"
@pdemarti
pdemarti / line_order_invariant_hash.py
Created February 25, 2017 05:52
Experiments for line-order invariant digest of a file
#---- In[ ]:
%load_ext autoreload
%load_ext Cython
%autoreload 2
%matplotlib inline
import matplotlib.pyplot as plt
import random
import string