Skip to content

Instantly share code, notes, and snippets.

View akiross's full-sized avatar
🥷
Ninja

Alessandro Re akiross

🥷
Ninja
View GitHub Profile
from line_profiler import LineProfiler
def do_profile(follow=[]):
def inner(func):
def profiled_func(*args, **kwargs):
try:
profiler = LineProfiler()
profiler.add_function(func)
for f in follow:
profiler.add_function(f)
@akiross
akiross / dropbox_upload_large.py
Last active October 25, 2018 11:18 — forked from PetrGlad/dropbox_upload_large.py
Upload large files to dropbox
#!/usr/bin/env python3
# This tool helps uploading (large) files on your dropbox, without having to install it.
# First, be sure to create an app for this to run and generate a token:
# https://www.dropbox.com/developers/apps
# Setting up example
# $ python3 -m venv venv_dbx
# $ . ./venv_dbx/bin/activate