Instantly share code, notes, and snippets.

jilm

• Sort options
Last active May 28, 2019
View spm_math.html

Last active May 25, 2019
View main.css
 body { background-color: #fcf8f1; text-align: left; display: flex; flex-direction: column; width: 100%; flex-grow: 1; padding: 0; margin: 0; height: 100%;
Created May 18, 2019
View spm.py
 import math def poisson(lmbd, k): return math.exp(-lmbd + k * math.log(lmbd) - math.lgamma(k+1)) def poisson_cumulative(lmbd, s): return sum([poisson(lmbd, k) for k in range(s+1)])
Last active May 17, 2019
The math remarks regarding reliability.
View spm_math.md

Pojmy

Deployed

Počet nasazených kusů dílu daného typu $d(t)$. Může být funkcí času.

Kumulovaná provozní historie

Created Feb 1, 2019
View prepare_dict.sh
 cat document | cut -d ';' -f 13 | tr '[:upper:]' '[:lower:]' | tr '[:punct:]' ' ' | tr ' ' '\n' | sort | uniq | ./stemmer > stems.txt cat document | cut ';' -f 13 | tr '[:upper:]' '[:lower:]' | tr '[:punct:]' ' ' | tr ' ' '\n' | sort | uniq > words.txt cat words.txt | awk '{print "["$0"]"}' | tr '[' '"' | tr ']' '"' paste words.txt stems.txt Created Jan 27, 2019 A script to show a picture with grid View grid.py  import PIL.Image import sys filename = sys.argv[1] im = PIL.Image.open(filename) im = im.convert('L') w, h = im.size gs = min(w, h) // 12 for r in range(h // gs): Created Jan 17, 2019 View Dictionary prepare  cat | tr 'A-ZÁČĎĚÉÍŇŘŠŤÚÝŽ' 'a-záčďěéíňřšťúýž' | tr "[:punct:][:space:]" "\n" | sort | uniq -c Last active Jan 11, 2019 Just Neural Network playground View nn.py  import numpy as np def sigmoid(x): return 1.0/(1.0+np.exp(-x)) def sigmoidPrime(s): return s*(1-s) def sigmoid_derivative(x): return np.exp(-x)/(1.0+np.exp(-x))**2 Created Mar 10, 2018 — forked from notthetup/soxplot.sh Whole file spectrum using SOX and gnuplot. View soxplot.sh  sox$1 -n stat -freq 2>&1 | sed -n -e :a -e '1,15!{P;N;D;};N;ba' | gnuplot -p -e 'set logscale x; plot "-" with linesp'
Last active Aug 15, 2017
XSLT template
View template.xsl

You can’t perform that action at this time.