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
find -name "* *" -type d | rename 's/ /_/g' # do the directories first | |
find -name "* *" -type f | rename 's/ /_/g' |
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
egrep -o '\bincludegraphics([^}]*\})?' file.tex | egrep -o '\{.+\}' | sed 's/{\|}//g' |
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
egrep 'input{.*}' file.tex | grep -o '{.*}' | sed 's/{\|}//g' |
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
git diff 14156a8430ebef7dfaf59d249dc1a5d864ebf71c -- SOM2.py |
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
#!/usr/bin/env sh | |
maintexfile=$1 | |
includefile=$2 | |
rootfilename=$(echo $includefile | cut -d. -f1) | |
(grep -B9999 'begin{document}' $maintexfile && echo " " && echo "\include{$rootfilename}" && echo "\\end{document}") > header.tex | |
latexmk -pdf -pvc header.tex |
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
#!/usr/bin/env sh | |
filename=$1 | |
grep -B9999 'begin{document}' $filename && echo ' ' && echo '\end{document}' |
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
#To compile with: | |
# latexmk -outdir=outdir -pdf BOUVIER_Guillaume_dossier_MCF.tex | |
BOUVIER_Guillaume_audition_COMESP.pdf | |
outdir | |
.trash | |
*.swp | |
*.aux | |
*.bbl | |
*.blg | |
*.fdb_latexmk |
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 sklearn import mixture | |
%pylab | |
def fit_mixture(data, ncomp=2, doplot=False): | |
clf = mixture.GMM(n_components=ncomp, covariance_type='full') | |
clf.fit(data) | |
ml = clf.means_ | |
wl = clf.weights_ | |
cl = clf.covars_ | |
ms = [m[0] for m in ml] |
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
# arcturus | |
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="kphoen" | |
eval $(dircolors ~/.dircolors) # dircolors -p > ~/.dircolors |
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
" arcturus | |
" choose colorscheme according to vim version | |
syntax on | |
set t_Co=256 | |
set gfn=DejaVu\ Sans\ Mono\ 11 | |
"set gfn=DejaVu\ LGC\ Sans\ Mono\ 11 | |
" No highlight search | |
set nohls | |
" No error bell | |
set noeb |
OlderNewer