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
{ | |
# Copyright 2008 Ondřej "Kedrigern" Profant < ondrej.profant (*) gmail.com> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
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
<?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 | |
use Nette\Utils\Finder; | |
/** | |
* @todo fake delete (delete to global trash) | |
*/ | |
class UploadManager extends \Nette\Object | |
{ | |
/** @var string upload dir */ |
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 | |
use \Nette\Application\UI\Form; | |
class Formik extends Form | |
{ | |
public function __construct() | |
{ | |
parent::__construct(); |