Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
# This file should be put in ~/.jupyter/ | |
# New notebooks will be renamed to YYYY-MM-DD_untitled-N.ipynb instead of Untitled.ipynb | |
# Please be aware that this code has **NOT** been tested extensively, I wrote it rather quickly, | |
# and thus your notebook might be deleted by accident. | |
# | |
# USE THIS CODE AT YOUR OWN RISK | |
# | |
import os | |
import re |
from mvpa2.suite import * | |
# increase verbosity a bit for now | |
verbose.level = 3 | |
# pre-seed RNG if you want to investigate the effects, thus | |
# needing reproducible results | |
#mvpa2.seed(3) | |
# we import Parallel and delayed from joblib to run in parallel | |
from joblib import Parallel, delayed | |
""" |
Getting started:
Related tutorials:
def appendSpherical_np(xyz): | |
ptsnew = np.hstack((xyz, np.zeros(xyz.shape))) | |
xy = xyz[:,0]**2 + xyz[:,1]**2 | |
ptsnew[:,3] = np.sqrt(xy + xyz[:,2]**2) | |
ptsnew[:,4] = np.arctan2(np.sqrt(xy), xyz[:,2]) # for elevation angle defined from Z-axis down | |
#ptsnew[:,4] = np.arctan2(xyz[:,2], np.sqrt(xy)) # for elevation angle defined from XY-plane up | |
ptsnew[:,5] = np.arctan2(xyz[:,1], xyz[:,0]) | |
return ptsnew |
#!/bin/bash | |
### ABOUT: See: http://gist.github.com/366269 | |
### Runs rsync, retrying on errors up to a maximum number of tries. | |
### On failure script waits for internect connection to come back up by pinging google.com before continuing. | |
### | |
### Usage: $ ./rsync-retry.sh source destination | |
### Example: $ ./rsync-retry.sh user@server.example.com:~/* ~/destination/path/ | |
### | |
### INPORTANT: |