Instantly share code, notes, and snippets.

View Dictionary prepare
cat | tr 'A-ZÁČĎĚÉÍŇŘŠŤÚÝŽ' 'a-záčďěéíňřšťúýž' | tr "[:punct:][:space:]" "\n" | sort | uniq -c
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
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'
View template.xsl
<?xml version="1.0" encoding="utf-8"?>
<!--
-->
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"