rsync -auzPhv --delete --exclude-from=rsync_exclude.txt SOURCE/ DEST/ -n-a->--archive; recursively sync, preserving symbolic links and all file metadata-u->--update; skip files that are newer on the receiver; sometimes this is inaccurate (due to Git, I think...)-z->--compress; compression-P->--progress+--partial; show progress bar and resume interupted transfers-h->--human-readable; human-readable format-v->--verbose; verbose output
-n->--dry-run; dry run; use this to test, and then remove to actually execute the sync
This file contains hidden or 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
| """Information Retrieval metrics | |
| Useful Resources: | |
| http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt | |
| http://www.nii.ac.jp/TechReports/05-014E.pdf | |
| http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf | |
| http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf | |
| Learning to Rank for Information Retrieval (Tie-Yan Liu) | |
| """ | |
| import numpy as np |
This file contains hidden or 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
| # |
This file contains hidden or 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
| # -*- coding:utf-8 -*- | |
| ''' | |
| Generating matrix of random numbers. | |
| ''' | |
| import sys | |
| import random | |
| import numpy | |
| class randMat(object): |
This file contains hidden or 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
| import sys | |
| class Sequence(object): | |
| def __init__(self,seq=None): | |
| self._seq_matrix = list() | |
| if seq is not None: | |
| self._seq_matrix=list() | |
| self._seq_matrix.append(list(seq)) | |
| def add_seq(self, seq): | |
| if self._seq_matrix is None: | |
| self._seq_matrix = list() |
This file contains hidden or 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
| " Sample .vimrc file by Martin Brochhaus | |
| " Presented at PyCon APAC 2012 | |
| " ============================================ | |
| " Note to myself: | |
| " DO NOT USE <C-z> FOR SAVING WHEN PRESENTING! | |
| " ============================================ | |
This file contains hidden or 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
| import sys | |
| def count(recs, delimiters): | |
| recs.sort() | |
| delimiters.sort() | |
| c = 0 | |
| result = [] | |
| for i in recs: | |
| if len(delimiters): | |
| if i <= delimiters[0]: |
This file contains hidden or 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
| import sys | |
| def count(recs, delimiters): | |
| recs.sort() | |
| delimiters.sort() | |
| c = 0 | |
| result = [] | |
| for i in recs: | |
| if len(delimiters): | |
| if i <= delimiters[0]: |
NewerOlder