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: Ondřej Profant, 2009} | |
unit prvocisla; | |
interface | |
Const MaxN = 10000; // konec Eratosthenova Síta | |
Type SITO = array [2..MaxN] of boolean; | |
function Prvocislo(j: integer): boolean; |
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
<?php | |
namespace test; | |
class objednavkaDopravaInfo | |
{ | |
public $kg; | |
public $psc; | |
public $typ; | |
public $dostupnost; // dostupnost u nas | |
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
<?php | |
/** | |
* Author: Ondřej Profant, 2012 | |
*/ | |
namespace finance; | |
/** | |
* Náhrada za výčtový typ. | |
* Definuje konstanty pro jednotlivé měny. |
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; | |
namespace kombinatorika | |
{ | |
class MainClass | |
{ | |
public static void Main (string[] args) | |
{ | |
Console.Write ("Hello World!\nPočet hodnot (jazyk): "); | |
int n = 4;//int.Parse( Console.ReadLine() ); |
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
/* | |
* Tento příklad vychází z Sandbox z http://addons.nette.org/cs/form-container-replicator | |
* resp. správně nastavené rozlišení form replikator | |
*/ | |
<?php | |
use Nette\Forms\Container; | |
use Nette\Application\UI\Form; | |
/** |
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
{* Component template *} | |
<div style="border-style: solid; border-width: 1px;"> | |
<h4>Komponenta</h4> | |
<p>Jméno komponenty: {$control->name}</p> | |
{snippet com} | |
<p>Čas vykreslení:{$time|date:'%H:%M:%S'}</p> | |
{/snippet} | |
<p><a n:href="refresh!" class="ajax">REFRESH (invalidování)</a></p> | |
</div> |
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
{** | |
* My Application layout template. | |
* | |
* @param string $basePath web base path | |
* @param string $robots tell robots how to index the content of a page (optional) | |
* @param array $flashes flash messages | |
*} | |
<!DOCTYPE html> | |
<html> |
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
<?php | |
/** | |
* | |
* Regexp matchich if string with street name has orientation number too. | |
* Rules are for Czech Republic orientation numbers: | |
* a) number for 0-999 | |
* b) may be supplemented by one letter | |
* @link http://www.czso.cz/csu/rso.nsf/i/cislo_orientacni | |
* |
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
<?php | |
/** | |
* | |
* Extract mail address in pointy brackets ("<", ">") from given string | |
* | |
* @author: Ondřej Profant <ondrej.profant <> gmail.com>, 2013 | |
* | |
*/ |
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
<?php | |
/** | |
* Homepage presenter. | |
*/ | |
class HomepagePresenter extends BasePresenter | |
{ | |
public function handleProcessImages() | |
{ | |
$files = $this->getHttpRequest()->getFiles(); |