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 | |
# My first shell script :) | |
# Backup domains directories and MySQL database. | |
clear | |
# CONFIGURATION | |
MODE_D="0740" | |
MODE_F="0640" | |
DAY=$(date +%F) # YYYY-MM-DD |
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 GravatarPresenter extends \Nette\Application\UI\Presenter | |
{ | |
public function actionDefault($email, $size = 80) | |
{ | |
$this->sendResponse(new GravatarResponse($email, $size)); | |
} | |
} |
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 | |
/** | |
* PHP-in' CMS Framework | |
* | |
* Copyright (c) 2010 Vaclav Vrbka (http://www.php-info.cz) | |
* | |
* This source file is subject to the "PHP-in' CMS Framework licence". | |
* For more information please see http://www.phpin.eu | |
*/ |
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 | |
/** | |
* Avalon CMS | |
* | |
* Copyright (c) 2010 Vaclav Vrbka (http://www.php-info.cz) | |
*/ | |
namespace Avalon\Application; | |
use Avalon, Nette; |
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 Doctrine\ORM\Query\Filter; | |
abstract class SQLFilter | |
{ | |
final public function __construct(Connection $conn); | |
final function setParameter($name, $value, $type); | |
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
{* with helper *} | |
<div id="with-data" data-example="{[a => b]|data}"></div> | |
{* with macro *} | |
<div id="with-data" n:data="example, [a => b]"></div> | |
<script> | |
var data = parseDataJson($('#with-data'), 'example'); | |
// => data == {a: 'b'} | |
</script> |
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 ApiModule; | |
use Nette, | |
Nette\Application\Request; | |
class Router extends Nette\Object implements Nette\Application\IRouter | |
{ |
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\Json; | |
/** | |
* Minimalistic Google OAuth2 connector | |
* @author Mikuláš Dítě | |
* @license BSD-3 | |
*/ | |
class Google extends Nette\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 | |
namespace VojtechDobes\NetteSecurity; | |
use Nette\InvalidArgumentException; | |
use Nette\Security\IAuthenticator; | |
use Nette\Security\IIdentity; | |
/** |
OlderNewer