This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q- quitSPC w /- split window verticallySPC w- - split window horizontallySPC 1- switch to window 1SPC 2- switch to window 2SPC w c- delete current window
| Script that will trigger a local to remote sync when any changes below your local Google Drive folder occur - but at max. every 10 minutes - and a remote to local sync every x (e.g. 30 minutes) via a cron job. | |
| 0. Install rclone and configure it for Google Drive | |
| 1. Create files listed below | |
| 2. Configure rclone_watch_local.sh to be run on startup (e.g. using a systemd service unit) | |
| 3. Add a cron job that runs rclone_remote2local.sh every x (e.g. 30) minutes | |
| ---------------------- | |
| rclone_local2remote.sh | |
| ---------------------- |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q - quitSPC w / - split window verticallySPC w - - split window horizontallySPC 1 - switch to window 1SPC 2 - switch to window 2SPC w c - delete current window| #! /usr/bin/env python | |
| import argparse | |
| import csv | |
| from mpi4py import MPI | |
| import logging | |
| import time | |
| def parseOptions(comm_world): | |
| parser = argparse.ArgumentParser( |
| [skin] | |
| description=Ajnasz Blue Theme. Midnight Commander skin from Ajnasz. | |
| [Lines] | |
| horiz=─ | |
| vert=│ | |
| lefttop=┌ | |
| righttop=┐ | |
| leftbottom=└ | |
| rightbottom=┘ |
| # (C) Mathieu Blondel, November 2013 | |
| # License: BSD 3 clause | |
| import numpy as np | |
| def ranking_precision_score(y_true, y_score, k=10): | |
| """Precision at rank k | |
| Parameters |
| """ | |
| Implementation of pairwise ranking using scikit-learn LinearSVC | |
| Reference: "Large Margin Rank Boundaries for Ordinal Regression", R. Herbrich, | |
| T. Graepel, K. Obermayer. | |
| Authors: Fabian Pedregosa <fabian@fseoane.net> | |
| Alexandre Gramfort <alexandre.gramfort@inria.fr> | |
| """ |
| """ | |
| Implementation of pairwise ranking using scikit-learn LinearSVC | |
| Reference: | |
| "Large Margin Rank Boundaries for Ordinal Regression", R. Herbrich, | |
| T. Graepel, K. Obermayer 1999 | |
| "Learning to rank from medical imaging data." Pedregosa, Fabian, et al., | |
| Machine Learning in Medical Imaging 2012. |