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
# defaults | |
syntax on | |
filetype plugin indent on | |
set shiftwidth=2 | |
set softtabstop=2 | |
set tabstop=2 | |
# per filetype | |
autocmd filetype python setlocal ts=4 sw=4 expandtab smartindent | |
autocmd filetype ruby setlocal ts=2 sw=2 expandtab smartindent |
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
ls|while read file; do DATE=$(grep -m 1 StartTime "$file" | cut -d'.' -f 1| tr -s 'T' ' '| cut -d'"' -f2); TIME=$(grep -m 1 TotalTime "$file"| cut -d'>' -f2 | cut -d'<' -f1); DISTANCE=$(grep -m 1 DistanceMeters "$file"| cut -d'>' -f2 | cut -d'<' -f1); echo -e "$DATE\t$TIME\t$DISTANCE";done |
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
from pyparsing import printable,quotedString,Word,OneOrMore | |
#text = 'words out of quotes "words inside quotes" more words out "and more words in"' | |
frase=OneOrMore(Word(printable) | quotedString) |