Skip to content

Instantly share code, notes, and snippets.

@jiru
jiru / check_exports.sh
Created July 9, 2020 09:46
Consistency-check script for per-language exports
#!/bin/bash
if [ ! -d "$DL_DIR" ]; then
echo "Please run this script using the runner, like this:"
echo "./docs/cron/runner.sh $0"
exit 1
fi
DL_DIR=${DL_DIR%/}
@jiru
jiru / gist:8199356838236d75dc5917dc18325fc2
Created May 14, 2019 13:10
Average number of words per sentences on 14/05/2019
<sentences> <lang>: <average>
1177510 eng: 8.046
715491 ita: 5.982
679848 rus: 5.725
666451 tur: 5.113
593492 epo: 7.110
463397 deu: 7.985
392189 fra: 8.285
322568 por: 6.977
301102 spa: 6.956
@jiru
jiru / forvo_scraper.sh
Last active May 21, 2023 01:53 — forked from rshipp/forvo_scraper.sh
Scrape the highest rated MP3 from Forvo.com for a given word
#!/bin/bash
# Forvo scraper
language=${FORVO_LANG:-fr}
BASEURL="http://forvo.com/search/"
AUDIOURL="http://audio.forvo.com/audios/mp3/"
word=$1
if [[ -z $word ]]; then
echo "usage: "
echo "FORVO_LANG=languagecode ./forvo_scraper.sh myword"