Skip to content

Instantly share code, notes, and snippets.

View holantomas's full-sized avatar

Tomáš Holan holantomas

View GitHub Profile
@holantomas
holantomas / statyEU.php
Created August 16, 2013 09:13
Státy EU v PHP poli
<?php
$countries = array(
"AT" => "Rakousko",
"BE" => "Belgie",
"BG" => "Bulharsko",
"CY" => "Kypr",
"CZ" => "Česká republika",
"DK" => "Dánsko",
"EE" => "Estonsko",
"FI" => "Finsko",
@holantomas
holantomas / FooControl.php
Last active October 20, 2017 10:29
Ukazka Nette komponenty
<?php
use Nette\Application\UI\Control;
class FooControl extends Control {
/** @var SomeDependecy */
private $depend;
public function (SomeDependecy $depend) {
$this->depend = $depend;
@holantomas
holantomas / BirthNumber.php
Last active May 22, 2018 11:24
Nette/Forms rodné číslo
<?php
namespace Holabs\Utils;
use Nette\InvalidArgumentException;
use Nette\Utils\Strings;
/**
@holantomas
holantomas / FallbackMailer.php
Created October 3, 2018 13:48
FallbackMailer
<?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
declare(strict_types=1);
namespace Nette\Mail;