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 App\Listeners; | |
use Kdyby\Events\Annotations as Event; | |
/** | |
* @Event\Subscriber([<class>]) | |
* <class> is set as default for all handlers |
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 | |
/** | |
* {reusable} | |
*/ | |
class GenericLogOnEventSubscriber implements Subscriber | |
{ | |
/** | |
* {args2prop [ private|public|protected]} | |
*/ |
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 SemanticUi = typeof SemanticUi == 'undefined' ? {} : SemanticUi; | |
SemanticUi.netteForms = {}; | |
SemanticUi.netteForms.currentError = null; | |
SemanticUi.netteForms.firstError = null; | |
/** | |
* Replaces default Nette behaviour to support SemanticUI theme | |
*/ | |
SemanticUi.netteForms.addError = function (elem, message) { |
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
{layout email.layout.latte} | |
{block subject}xyz{/block} | |
{block content} | |
Some html... | |
{/block} | |
{* missing another block *} |
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
// go to http://bower-component-list.herokuapp.com/ | |
// include jQuery | |
var | |
data, | |
dots = 0, | |
dashes = 0; | |
jQuery.get('http://bower-component-list.herokuapp.com/', function (payload) { | |
data = payload; | |
}); |
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 blocks ip requests - only request with Host are supported | |
server { | |
listen 80 default_server; | |
listen 443 default_server ssl; | |
server_name _; | |
return 444; | |
} |
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
// NetBeans | |
// var editor = '"C:\\Program Files\\NetBeans 7.0\\bin\\netbeans.exe" "%file%:%line%" --console suppress --nosplash'; | |
// PhpStorm | |
//var editor = '"C:\\Program Files (x86)\\JetBrains\\PhpStorm 5.0.4\\bin\\PhpStorm.exe" --line %line% "%file%"'; | |
// var phpStorm = '"C:\\Program Files (x86)\\JetBrains\\PhpStorm 6.0.3\\bin\\PhpStorm.exe" --line %line% "%file%"'; | |
var phpStorm = '"C:\\Program Files (x86)\\JetBrains\\PhpStorm 7.1\\bin\\PhpStorm.exe" --line %line% "%file%"'; | |
// jEdit | |
//~ var editor = '"C:\\Program Files (x86)\\jEdit\\jedit.exe" "%file%" +line:%line% -reuseview'; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
<div class="ui dropdown selection" data-bind="dropdown: dropdown"></div> | |
<!-- actual template is in binding 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 App; | |
use CryptoBot; | |
use CryptoBot\McxNow\Currency; | |
use Nette; | |
use React; | |
use React\Promise\When; | |
use Symfony; |