This file contains hidden or 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 | |
/** | |
* Tools for accessing "invisible" properties and calling "invisible" methods | |
* | |
* @author Jan Tvrdík | |
* @license MIT | |
*/ | |
class VisibilityHack | |
{ | |
/** |
This file contains hidden or 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 Nette\Templates; | |
use Nette; | |
use Nette\String; | |
use Nette\Forms\Form; | |
/** | |
* Form macros | |
* |
This file contains hidden or 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 | |
/** | |
* Form control for selecting date | |
* | |
* Internally holds date as DateTime instance which is also returned by getValue method | |
* | |
* @author Jan Tvrdík | |
*/ | |
class DatePicker extends Nette\Forms\FormControl | |
{ |
This file contains hidden or 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 | |
/** | |
* Magický, komponenty na požádání tvořící kontejner | |
* | |
* @author Jan Tvrdík | |
*/ | |
class ReplicatingContainer extends Nette\ComponentContainer | |
{ | |
/** @var callback */ | |
public $factoryCallback; |
This file contains hidden or 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
git filter-branch -f --msg-filter ' | |
sed \ | |
-e "s/\xC4\x9B/e/g" \ | |
-e "s/\xC5\xA1/s/g" \ | |
-e "s/\xC4\x8D/c/g" \ | |
-e "s/\xC5\x99/r/g" \ | |
-e "s/\xC5\xBE/z/g" \ | |
-e "s/\xC3\xBD/y/g" \ | |
-e "s/\xC3\xA1/a/g" \ | |
-e "s/\xC3\xAD/i/g" \ |
This file contains hidden or 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 Foo | |
{ | |
/** | |
* @return Foo|int|NULL|TRUE|FALSE|bool | |
*/ | |
public function test() | |
{ | |
} |
This file contains hidden or 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 | |
function wc($level = 1) { | |
if (\Nette\Debug::$productionMode) { return; } | |
$o = function ($t) { return (isset($t->class) ? htmlspecialchars($t->class) . "->" : NULL) . htmlspecialchars($t->function) . '()'; }; | |
$f = function ($t) { | |
$file = defined('APP_DIR') ? 'app' . str_replace(realpath(APP_DIR), '', realpath($t->file)) : $t->file; | |
return '<a href="' . \Nette\DebugHelpers::editorLink($t->file, $t->line) . '">' . htmlspecialchars($file) . ':' . (int)$t->line . '</a>'; | |
}; |
This file contains hidden or 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
#punwrap {max-width: 1200px; width: auto !important;} | |
blockquote p { | |
margin: 5px 0 !important; padding: 0 !important; | |
font-family: Verdana !important; | |
font-size: 12px !important; | |
} | |
blockquote p:first-child { |
This file contains hidden or 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
SET FOREIGN_KEY_CHECKS=0; | |
-- ---------------------------- | |
-- Table structure for `articles` | |
-- ---------------------------- | |
DROP TABLE IF EXISTS `articles`; | |
CREATE TABLE `articles` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`title` varchar(100) NOT NULL, |
This file contains hidden or 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
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) | |
{ | |
char c = ' '; // aktuálně čtený znak | |
int negative; | |
int result; | |
int sum = 0; | |
OlderNewer