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 Eshop\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity(repositoryClass="Eshop\Repository\ProductTagRepository") | |
* @ORM\Table(name="product_tag") | |
**/ |
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
#!/bin/bash | |
# Realy simple and easy script for automatic background change of gnome shell screensawer wallpaper | |
# Install: | |
# 1. put this script somewhere | |
# 2. set script executable (chmod +x unsplash.sh) | |
# 3. add script to your crontab (crontab -e) [0 * * * * YOUR_PATH/unsplash.sh >/dev/null 2>&1] | |
PWD=$(dirname $(readlink -f $0)) |
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
### Keybase proof | |
I hereby claim: | |
* I am vojtabiberle on github. | |
* I am vojtabiberle (https://keybase.io/vojtabiberle) on keybase. | |
* I have a public key ASA3i0iQA93mo4WcVvgZlm1nxWYqtTYsbY0vKQBqtQBACwo | |
To claim this, I am signing this object: |
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 | |
class Foo { | |
public $str1 = 'hello'; | |
protected $str2 = 'world'; | |
private $str3 = 'meh'; | |
public function __construct() | |
{ | |
// just for fun |
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\ComponentModel\IContainer; | |
use Nette\Forms\Controls; | |
class Bootstrap3Form extends \Nette\Application\UI\Form | |
{ | |
public function __construct(IContainer $parent = NULL, $name = NULL) | |
{ | |
$this->setRenderer(new Bootstrap3FormRenderer()); |
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 | |
/** | |
* | |
* | |
* Spouštět pomocí ./phinx.sh nebo pomocí php vendor/bin/phinx | |
* | |
* Obsah souboru ./phinx.sh: | |
* #!/bin/bash | |
* php vendor/bin/phinx $@ |
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 | |
define ('DSN_REGEX', '/^((?P<driver>\w+):\/\/)?((?P<user>\w+)?(:(?P<password>\w+))?@)?((?P<adapter>\w+):)?((host=(?P<host>[\w-\.]+))|(unix_socket=(?P<socket_file>[\w\/\.]+)))(:(?P<port>\d+))?((;dbname=|\/)(?P<database>[\w\-]+))?$/Uim'); |
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 | |
global $more; | |
$more = 0; | |
the_content('Read the full article...'); | |
?> |