[ Launch: test ] fa690f7a753ee057e5926299b6fd97f2 by clemsos[ Launch: test ] 4653053 by enjalot[ Launch: test ] 4652017 by enjalot[ Launch: test ] 4582399 by enjalot
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 python | |
# -*- coding: utf-8 -*- | |
''' | |
This script just show the basic workflow to compute TF-IDF similarity matrix with Gensim | |
OUTPUT : |
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 pyelasticsearch import ElasticSearch | |
import pandas as pd | |
from time import time | |
root_path="/home/clemsos/Dev/mitras/" | |
raw_data_path=root_path+"data/" | |
csv_filename="week10.csv" | |
t0=time() |
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/python | |
# convert citations into latex format | |
# | |
# (Nivre et al., 2007) | |
# (Sagae and Tsujii 2007) | |
# Nivre (2007) | |
# (Chen et al., 2007; Dredze et al., 2007). | |
# | |
# \cite{Nivre2007} |
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
#!/bin/bash | |
file="$1" | |
colorpages=0 | |
# count all pages | |
totalpages=$(gs -q -dNODISPLAY -c "($1) (r) file runpdfbegin pdfpagecount = quit") | |
echo "Total pages : $totalpages" | |
# find pages with colors | |
for page in $(identify -density 12 -format '%p ' "$file") ; do |
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
#!/bin/bash | |
w2l -config ./w2l-config.xml chapitre-xxx.odt chapters/chapitre-xxx.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
#!/bin/bash | |
# USAGE : | |
# | |
# chmod +x run_tests.sh | |
# ./run_tests.sh # run all tests | |
# ./run_tests.sh xxx.py # run a single test | |
# | |
test_dir=`pwd`/tests |
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
#!/bin/bash | |
PDF_IN="LS58_Presentation_FR_EN.pdf" | |
BASENAME_OUT="junkware" | |
PAGE_START=2 | |
PAGE_END=2 | |
for ((i=$PAGE_START; i<=$PAGE_END; i++)); | |
do |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
div { | |
width : 17px; | |
height: 19px; | |
color : white; |
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
# #!/bin/bash | |
GITBOOK_REP=$1 | |
SUMMARY_FILE="SUMMARY.md" | |
echo $OUTPUT_FILE | |
if [ -d "$GITBOOK_REP" ]; then | |
echo "Entering directory '$GITBOOK_REP'..." | |
cd $GITBOOK_REP |
OlderNewer