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
FROM php:7.1-fpm-alpine | |
LABEL maintainer="Dusan Hudak <[email protected]>" | |
RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ --allow-untrusted gnu-libiconv | |
ENV LD_PRELOAD /usr/lib/preloadable_libiconv.so php | |
# install GD | |
RUN apk add --no-cache freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev && \ | |
docker-php-ext-configure gd \ | |
--with-gd \ |
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
/** | |
* This file is part of the ReCaptchaControl package | |
* | |
* @license MIT | |
* @author Petr Kessler (https://kesspess.cz) | |
* @link https://github.com/uestla/ReCaptchaControl | |
*/ | |
;(function(window, $) { |
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 | |
$urls = array( | |
'https://affil.invia.sk/direct/core/tool_xml-feed/download/id/4717246-59914d4420a17/', | |
'https://affil.invia.sk/direct/core/tool_xml-feed/download/id/4717246-5991501203db9/', | |
'https://affil.invia.sk/direct/core/tool_xml-feed/download/id/4717246-5991508463df6/', | |
'https://affil.invia.sk/direct/core/tool_xml-feed/download/id/4717246-599150f30d32a/', | |
'https://affil.invia.sk/direct/core/tool_xml-feed/download/id/4717246-598ec4850dd48/', | |
'https://affil.invia.sk/direct/core/tool_xml-feed/download/id/4717246-598df691c7e53/', | |
'https://affil.invia.sk/direct/core/tool_xml-feed/download/id/4717246-598df6511a99e/', |
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
Samozrejme zalezi od konkretneho pripadu, ale podmienku by som rozdelil do mensich AOP casti | |
<?php | |
/** | |
* @param array $settings | |
* @return bool | |
*/ | |
public function isModuleUploads($settings = array()) { | |
if (isset($settings['module-uploads']) && $settings['module-uploads']) { |
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
Pokial sa jedna o tento priklad tak connection by som riesil ako sluzbu samostatne a dal by som ju do DI, | |
pri registraci do DI by sa nakonfigurovala, naco sa ma stale vytvarat objekt DatabaseConnection staci jedn sluzba. | |
UserFacade by som tiez dal do DI nech si ju mozem zavolat kde potrebujem a DatabaseConnection si vyziadam, DI sa o to uz postara. | |
V reale by som asi pouzil doctrinu, lebo ma lepsie riesenu architekturu. | |
<?php | |
class DatabaseConnection { |
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 | |
/** | |
* This file is part of the Nas of Nette Framework | |
* | |
* Copyright (c) 2013 Dusan Hudak (http://dusan-hudak.com) | |
* | |
* For the full copyright and license information, please view | |
* the file license.txt that was distributed with this source code. | |
*/ |
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 Nas\UsersModule\Model; | |
/** | |
* @ORM\Entity | |
* @ORM\Table(name="roles") | |
*/ | |
class Role extends 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 NasExt\Framework\Components\WebLoader\Filter; | |
use WebLoader\Compiler; | |
/** | |
* @author Dusan Hudak <[email protected]> | |
*/ | |
class LessFilter |
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 Nas; | |
use Nette\Application\IRouter; | |
use Nette\Application\Request; | |
use Nette\Http\IRequest; | |
use Nette\Http\Url; | |
use Nette\Object; | |
class ModularRouter extends Object implements 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
/** | |
* Display error message. | |
*/ | |
Nette.addError = function (elem, message) { | |
if (elem.focus) { | |
elem.focus(); | |
} | |
if (message) { | |
var elemPosition = $(elem).position(); | |
var elmHeight = $(elem).outerHeight(); |
NewerOlder