diff options
-rw-r--r-- | inf/.gitignore | 2 | ||||
-rwxr-xr-x | inf/26.5.sh | 20 | ||||
-rw-r--r-- | mat/formule.tex | 1 |
3 files changed, 23 insertions, 0 deletions
diff --git a/inf/.gitignore b/inf/.gitignore new file mode 100644 index 0000000..e3bd28a --- /dev/null +++ b/inf/.gitignore @@ -0,0 +1,2 @@ +domain_users.grep +*.txt diff --git a/inf/26.5.sh b/inf/26.5.sh new file mode 100755 index 0000000..61682d6 --- /dev/null +++ b/inf/26.5.sh @@ -0,0 +1,20 @@ +#!/bin/bash +url=https://ucilnice.gimb.org +id=29761 +t=`mktemp -p/tmp 26.5.XXXXX` +c="--cookie $t --cookie-jar $t -k --location" +co="$c -i" +r=`curl $url/login/index.php $co` +logintoken=`grep logintoken <<<$r | cut -d\" -f6 | cut -d\" -f1` +sesskey=`curl $url/login/index.php $co --data-raw "logintoken=$logintoken&username=$GIMB_U&password=$GIMB_P" | grep sesskey | cut -d\" -f8 | cut -d\" -f1` +seznam=`echo seznam nazadnje posodobljen: $(date) && curl $url/mod/choice/report.php $c --data-raw "id=$id&download=txt&sesskey=$sesskey"` +se=`grep -v Skupina <<<$seznam | grep -v nazadnje` +sez=`cat <<<$se | grep -v "ni odgovora"` +vsi=`grep Dijaki domain_users.grep | grep 2019 | grep -v 2019Q | grep -v test | cut -f3` +razlika=`comm -13 <(cat <<<$sez | cut -f3 | cut -d@ -f1 | sort) <(cat <<<$vsi | sort)` +cat <<<$razlika > neprijavljeni.txt +cat <<<$sez > prijavljeni.txt +cat <<<$se > vpisani.txt +cat <<<$vsi > vsi.txt +echo "zadnja posodobitev: " `date` > stanje.txt +echo`wc -l {{ne,}prijavljeni,vpisani,vsi}.txt` >> stanje.txt diff --git a/mat/formule.tex b/mat/formule.tex index 1995684..48d0cc2 100644 --- a/mat/formule.tex +++ b/mat/formule.tex @@ -115,6 +115,7 @@ $$soda(x)=-soda(x) \wedge liha(-x)=-liha(x)$$ $$f(x)\neq-f(x)\nLeftrightarrow f(-x)=-f(x) \text{ in obratno}$$ $$f(x)=-f(x) \wedge f(-x)=-f(x) \Leftrightarrow f(x)=0$$ + $$x_{1,2}=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$ \end{multicols} \section{Trorazsežnostna geometrijska telesa: Četrti test} % todo: funkcije na likih - notranji kot, prisekana piramida, prisekan stožec, kuboktaeder, tetraeder, včartavanje teles v druga telesa \begin{multicols}{2} |