This file contains 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
rsync -rltgoDvz --modify-window=1 --delete ~/.thunderbird/ --exclude="**/global-messages-db.sqlite" --exclude="**/places.sqlite" --exclude="Crash*Reports/" --exclude="**/Cache/" --exclude="**/startupCache/" --exclude="**/OfflineCache/" /mnt/pixelbox/home/thunderbird-backup |
This file contains 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
# requires ls/a.file in the root directory | |
import os | |
import subprocess | |
import shutil | |
import tempfile | |
import pytest | |
def mk_cd_tempdir(path, suffix=''): | |
cur_dir = os.path.abspath(os.path.curdir) | |
test_dir = tempfile.mkdtemp(suffix=suffix) |
This file contains 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
#http://www.troyfawkes.com/learn-python-multithreading-queues-basics/ | |
#http://lonelycode.com/2011/02/04/python-threading-and-queues-and-why-its-awesome/ | |
from __future__ import division | |
from __future__ import print_function | |
from __future__ import absolute_import | |
import time | |
import logging | |
import threading |
This file contains 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
xy_in2 = np.array([ | |
np.linspace(-1.5, 1.5, 11), | |
np.linspace(1, 1, 11) | |
]).T | |
print xy_in2.shape | |
def _grid_interpolate_additional(xy, xydev, xy_in): | |
"""Interpolate values for xy and xydev on points of xy_in. | |
Values of xy_in that are outside of xy result in 0. |
This file contains 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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:836445cd939079783ca00f23e0eec88e6e83323c0a7c41d2d665e9fb84653099" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |