Počet nasazených kusů dílu daného typu
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
HLEDEJ | |
KDYŽ NENÍ ZNAČKA | |
POLOŽ | |
POLOŽ | |
KDYŽ NENÍ ZEĎ | |
KROK | |
HLEDEJ | |
KONEC | |
VLEVO-VBOK | |
KDYŽ NENÍ ZEĎ |
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
\documentclass[a4paper]{book} | |
\usepackage[utf8]{inputenc} | |
\usepackage{marginnote} | |
\usepackage{amssymb} | |
%\usepackage{fontawesome} | |
\usepackage{color} | |
\usepackage{xcolor} | |
\usepackage{dialogue} | |
\usepackage{multicol} | |
\usepackage{adforn} |
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 http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<meta charset="UTF-8"> | |
<link rel="stylesheet" href="main.css"> | |
<script type="text/x-mathjax-config"> | |
MathJax.Hub.Config({ | |
TeX: { equationNumbers: { autoNumber: "all" } } |
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
body { | |
background-color: #fcf8f1; | |
text-align: left; | |
display: flex; | |
flex-direction: column; | |
width: 100%; | |
flex-grow: 1; | |
padding: 0; | |
margin: 0; | |
height: 100%; |
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
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)]) | |
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
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 |
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
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): |
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
cat | tr 'A-ZÁČĎĚÉÍŇŘŠŤÚÝŽ' 'a-záčďěéíňřšťúýž' | tr "[:punct:][:space:]" "\n" | sort | uniq -c |
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
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 |
NewerOlder