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 Data.List | |
-- ukolem je matice 4x4 | |
rozmer = 4 | |
-- ze vsech matic vyfiltruji ty, co popisuji relaci a z nich ty, kde 3 a 2 nejsou srovnatelné | |
uplny_vysledek = vysledek $ relace $ matice rozmer | |
-- matice, kde 3 a 2 nejsou v relaci | |
vysledek mat' = filter fce mat' |
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
Príklad 1. Z Brna vyrazí náhodne nekdy mezi polednem a ctvrtou hodinou | |
odpolední Honza autem do Prahy a opacným smerem nekdy ve stejném intervalu | |
autem Martin. Oba si dávají pul hodiny pauzu v motorestu v polovine cesty | |
(prístupném pro oba smery). Jaká je pravdepodobnost, že se tam potkají, jezdíli | |
Honza rychlostí 150 km/h, a Martin 100 km/h? (vzdálenost Brno-Praha je | |
200 km) |
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 Data.List | |
import IO | |
import List | |
import Graphics.HGL | |
{-- | |
Code by Jiří Daněk - Thank you for your permission and this code | |
--} | |
-- ukolem je matice 4x4 |
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
module Graph_t where | |
import Graph | |
import Test.HUnit | |
import Control.Exception | |
import Control.Monad | |
--t_ = TestCase $ assertEqual "" (show ( )) "" |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import sys | |
""" | |
" Vysledek je na https://spreadsheets.google.com/ccc?key=0AveNRb1dJwZ5dHIwTUVzZlQ5TGdoZDh1d0RFeVpqT3c&hl=en#gid=0 | |
" | |
" Osekává první velké písmeno - člověk musí sám poznat, že se jedná o vlastní jméno atd | |
" |
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
/* Neparalelní verze Quicksortu. | |
* | |
* Určitě by to šlo udělat líp, už v tomhle stádiu. Ale | |
*/ | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <pthread.h> | |
#include <unistd.h> //sleep |
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 java.util.Arrays; | |
import java.util.HashSet; | |
import java.util.Scanner; | |
import java.util.Set; | |
public class Polynominum { | |
public int a; | |
public int b; | |
/** | |
* ************ |
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
__author__ = 'jirka' | |
import subprocess | |
p = subprocess.Popen(shell=True, args='java Main', stdin=subprocess.PIPE) | |
stdin = p.stdin | |
while True: | |
i = input() |
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
[jirka@private hw04]$ ssh aisa | |
Host key fingerprint is 09:33:ca:ad:1e:a5:9a:1a:e7:68:23:ac:04:18:dd:85 | |
+--[ RSA 1024]----+ | |
| .. | | |
| . .E. | | |
|. . . + | | |
|.. . o + . | | |
|o o o S | | |
|. + | | |
|o.. + | |
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
package main | |
import ( | |
"fmt" | |
"net" | |
"bufio" | |
) | |
func main() { | |
conn, err := net.Dial("tcp", ":8822") |
OlderNewer