This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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, 2010 | |
| * Velmi stará a špatná školní práce... | |
| */ | |
| using System; | |
| using CodEx; | |
| namespace Nejcastejsi | |
| { |
This file contains hidden or 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 hidden or 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
| #/bin/bash | |
| # Author: Ondřej Profant, 2012 | |
| # Mail: ondrej.profant <> gmail.com | |
| # Licence: GPL | |
| # Utility to clean/sort huge directories. For example for move all preview images (small files) from dir to another dir. | |
| LICENCE=GPL | |
| VERSION=0.1 | |
| DEFAULT_LIMIT=$((10 << 10)); #10kb | |
| function help() { |
This file contains hidden or 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
| #!/bin/bash | |
| # Author: Ondřej Profant, 2012 | |
| # Email: ondrej.profant <> gmail.com | |
| # Licence: GPL | |
| # Sorted files from gived dirs by file's sufixes. And it is little bit complicated than just copy (for example see arg LIMIT etc.). | |
| # I use it as final step after PhotoRec recovery app. | |
| # Sorry for Czech texts. | |
| # TODO: | |
| # -- cmd args | |
| # -- clean code |