Skip to content

Instantly share code, notes, and snippets.

View janmarek's full-sized avatar

Jan Marek janmarek

  • Prague, Czech Republic
View GitHub Profile
<?php
/**
* This file is part of the Nette Framework (http://nette.org)
*
* Copyright (c) 2004, 2011 David Grudl (http://davidgrudl.com)
*
* For the full copyright and license information, please view
* the file license.txt that was distributed with this source code.
*/
<?php
namespace Symfony\Component\Validator\Constraints;
/**
* @author Roman Sklenář, Jan Marek
* @link https://gist.github.com/664454
*/
class Unique extends \Symfony\Component\Validator\Constraint
{
<?php
// alt-shift zmena klavesnice EN->CS (QWERTY)
// ctrl-space code hints
// nekdo to spustte. nevime co to dela
namespace {
$users = array();
$val = isset($_GET['lorem']) ? intval($_GET['lorem']) : 0;
}