View Foo.default.latte
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
{control formProductAdd} |
View nginx.conf
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
upstream huboard_unicorn { | |
server unix:/home/hosiplan/develop/testing/huboard/tmp/unicorn.huboard.sock fail_timeout=0; | |
} | |
server { | |
listen 127.0.0.1:80; | |
server_name huboard.dev; | |
root /home/hosiplan/develop/testing/huboard/public; | |
try_files $uri/index.html $uri @huboard_unicorn; |
View ajax.overlay.js
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
(function ($) { | |
$.nette.ext('overlay', { | |
before: function (xhr, settings) { | |
if (!settings.nette || !settings.nette.el) { | |
return; | |
} | |
var tar = $(settings.nette.el); | |
var container = tar.closest('.ajax-overlay'); |
View BaseControl.php
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 | |
/** | |
* @method onAttached(BaseControl $control, Nette\Application\UI\PresenterComponent $parent) | |
* @method \BasePresenter getPresenter() | |
* | |
* @property \BasePresenter|BaseControl[] $presenter | |
* @property-read \BasePresenter|BaseControl[] $presenter | |
* @property \Nette\Templating\FileTemplate|\stdClass $template |
View bootstrap.php
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 | |
require __DIR__ . '/../vendor/autoload.php'; | |
$configurator = new Nette\Configurator; | |
$configurator->setDebugMode(TRUE); // debug mode MUST NOT be enabled on production server | |
$configurator->enableDebugger(__DIR__ . '/../log'); | |
$configurator->setTempDirectory(__DIR__ . '/../temp'); |
View Extension.phpt
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 ExtensionTest extends Tester\TestCase | |
{ | |
public function testMergingMetadata_simple() | |
{ | |
$compiler = new CompilerMock(); |
View Client.php
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 NewRelic; | |
use Kdyby; | |
use Nette; | |
use Tracy\Debugger; | |
View dukaz-misto-slibu.php
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 Foo1 | |
{ | |
public function bar() | |
{ | |
for ($i = 1000000; $i > 0; $i--) { | |
$result = $this->dance(); |
View Application.js
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
import Kefir from 'kefir'; | |
import {List, Stack} from 'immutable'; | |
import {comp, filter, map} from 'transducers-js'; | |
function register(stream, messageType, handler) { | |
let xform = comp( | |
filter(x => x.first() === messageType), | |
map(x => x.rest())); | |
stream.transduce(xform).onValue(handler); | |
} |
OlderNewer