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
// jQuerys default .load() is unreliable in WebKit browsers as is said in documentation | |
$.fn.imageLoad = function(fn){ | |
this.load(fn); | |
this.each( function() { | |
if ( this.complete && this.naturalWidth !== 0 ) { | |
$(this).trigger('load'); | |
} | |
}); | |
} |
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
var didScroll = false; | |
$(window).scroll(function() { | |
didScroll = true; | |
}); | |
setInterval(function() { | |
if ( didScroll ) { | |
didScroll = false; | |
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 Article | |
{ | |
/** @var \DateTime */ | |
private $createdAt; | |
/** @var ArticleHistory[] */ | |
private $historyChanges; |
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
root@debian7:~# ./certbot-auto certonly --webroot -w /var/www/cz.directa.com/www -d cz.directa.com -d cs.directa.com -d ru.directa.com | |
Bootstrapping dependencies for Debian-based OSes... | |
Hit:1 http://packages.dotdeb.org wheezy-php56 InRelease | |
Hit:2 http://security.debian.org stretch/updates InRelease | |
Hit:3 http://ftp.u-picardie.fr/mirror/debian wheezy-backports InRelease | |
Hit:4 http://ftp.it.debian.org/debian stretch InRelease | |
Hit:5 http://ftp.it.debian.org/debian stretch-proposed-updates InRelease | |
Reading package lists... Done | |
Reading package lists... Done | |
Building dependency tree |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="OdbavTo" default="production" basedir="."> | |
<property environment="env" /> | |
<property name="configFile" value="app/config/config.testttt.neon" /> | |
<target name="production" description="Creates local config file"> | |
<available file="${configFile}" property="configExists" /> | |
<echo msg="Config file: ${configFile}" /> | |
<echo msg="Config exists: ${configExists}" /> | |
<if> |
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 declare(ticks=1, strict_types=1); | |
require_once __DIR__ . '/../vendor/autoload.php'; | |
use Arara\Process\Action\Command; | |
use Arara\Process\Child; | |
use Arara\Process\Control; | |
use Kdyby\RabbitMq\DI\RabbitMqExtension; | |
use Nette\DI\Container; |
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
Vygenerovat migrations, ktera smaze z commentu typu `(DC2Type:identity_uid)` |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="OdbavTo" default="createLocalConfig" basedir="."> | |
<property environment="env" /> | |
<property name="configFile" value="app/config/config.local.neon" /> | |
<target name="createLocalConfig" description="Creates local config file"> | |
<available file="${configFile}" property="configExists" /> | |
<if> | |
<isset property="configExists" /> | |
<then> |
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 declare (strict_types=1); | |
namespace OdbavTo\App\Presenters; | |
use Nette\Application\IResponse; | |
use Nette\Application\Request; | |
use OdbavTo\App\HttpRequest\RequestBodyHelper; | |
use OdbavTo\App\Responses\CreatedResponse; | |
use OdbavTo\Application\CreateTicket\CreateTicketRequest; | |
use OdbavTo\Application\CreateTicket\CreateTicketUseCase; |
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
#### | |
## Production build | |
#### | |
FROM php:7.1-apache as production | |
MAINTAINER Jan Mikeš [email protected] | |
## Install composer globally | |
RUN curl -sS https://getcomposer.org/installer | php \ | |
&& mv composer.phar /usr/local/bin/composer |
OlderNewer