Links:
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 pandas as pd | |
import numpy as np | |
import seaborn as sns | |
import matplotlib | |
import matplotlib.pyplot as plt | |
def overlapplot(xstart, xend, ycategory, data=None, hue=None, palette=None, **kwargs): | |
# Load data | |
start = "start" |
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{standalone} | |
\usepackage{tikz} | |
\usetikzlibrary{shapes, calc, positioning, fit, topaths} | |
\pgfdeclarelayer{background} | |
\pgfsetlayers{background,main} | |
\begin{document} |
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
private void ParallelSort<T>(List<T> list, Comparer<T> comparer) { | |
void MergeSort(List<T> l, Comparer<T> comp, int low, int high) { | |
int mid = (high - low) / 2; | |
var t1 = new Thread(() => MergeSort(l, comp, low, mid)); | |
t1.Start(); | |
t1.Join(); | |
MergeSort(l, comp, mid, high); | |
Merge(l, comp, low, mid, high); | |
} |
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
<p><strong><em>CZ (English version below):</em></strong></p> | |
<p>Napište výrazovou kalkulačku, která dostává na standardní vstup instrukce a na | |
standardní výstup vypisuje výsledky, případně chybové hlášky. Na jednom řádku | |
vstupu je vždy jediný příkaz. Kalkulačka zpracovává příkazy jeden po druhém, | |
přičemž nejprve dokončí jeden příkaz než začne načítat další. Kalkulačka končí | |
svou práci, pokud dojdou vstupní data (čtení řádku vrátí <code>null</code>) nebo narazí | |
na řádek obsahující pouze řetězec <code>"end"</code>. Kalkulačka rozeznává tři příkazy:</p> | |
<ul> | |
<li>Řádek začínající symbolem <code>"="</code>, za kterým následuje právě jedna mezera a výraz v preorder formátu (viz níže). Kalkulačka si výraz načte a nadále bude pracovat pouze s ním. Pokud již dříve načetla jiný výraz, starý výraz zapomene a nahradí jej novým. Předchozí správně načtený výraz program zapomene i v případě, že při zpracování příkazu <code>"="</code> došlo k chybě.</li> | |
<li>Samostatný řetězec <code>"i"</code> vyhodnotí naposledy načtený výr |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using System.Text.RegularExpressions; | |
using System.Threading.Tasks; | |
namespace Uloha7_Excel | |
{ |
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
#include <stdio.h> | |
#include <stddef.h> | |
struct foo { | |
unsigned short a : 15; | |
short b : 2; | |
}; | |
int | |
main(void) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.IO; | |
namespace ConsoleApp1 | |
{ |
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
using System; | |
using System.Collections.Generic; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using Uloha4_ViceZarovnani; | |
namespace Uloha4ViceZarovnaniTests | |
{ | |
[TestClass] | |
public class ReaderUT |
NewerOlder