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
// <a href="3" class="confirm" data-confirm="Realy detete this item?">Delete Item</a> | |
$(document).on('click', '.confirm', function() { | |
var text = ''; | |
if ($(this).attr('data-confirm')) { | |
text = $(this).attr('data-confirm'); | |
} | |
if (text.length == 0) { | |
text = 'Really take this action?'; | |
} | |
var answer = confirm(text); |
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 | |
/** | |
* duvod - nette mi v db cache adresari u webu radiozurnalu udelalo 600k souboru s velikosti asi 1,7GB | |
* takze to potrebuju nejak promazavat (myslel jsem, ze si to nette osetruje samo...) | |
*/ | |
$cacheDir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'temp'. DIRECTORY_SEPARATOR . 'cache' ; | |
$dirContent = scandir ($cacheDir); |
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 | |
// $this->logger = new Logger(); | |
// $this->logger->setLogFile('admin.log'); | |
// $this->logger->setTextBefore('user: '.$this->getUser()->getIdentity()->username); | |
// $this->logger->log($log); | |
class Logger { | |
private $logFile = 'logfile.log'; |
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 | |
$str = trim($str, chr(0xC2).chr(0xA0)); |
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
/** | |
* vrati atribut data-line s cislem radku na kterem byla tato fce volana | |
* pro zobrazeni v html prvku | |
* @return string | |
*/ | |
function dataLine() { | |
$out = ''; | |
$trace = debug_backtrace(); | |
// dump($trace); | |
if (!empty($trace) && isset($trace[0])) { |
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
pokemon name | types | quick attack | qa dps | charge attack | cha dps | BAM | formula | generation | MEG1 | MEG2 | |
---|---|---|---|---|---|---|---|---|---|---|---|
Normal | |||||||||||
Rattata | Normal | Quick Attack Normal 10 | 9,4 | Body Slam Normal 40 | 24,3 | no | 228,42 | gen 1 | no | ||
Rattata | Normal | Quick Attack Normal 10 | 9,4 | Hyper Fang Normal 35 | 16,8 | no | 157,92 | gen 1 | no | ||
Rattata | Normal | Tackle Normal 12 | 13,6 | Body Slam Normal 40 | 24,3 | yes | 330,48 | gen 1 | no | ||
Rattata | Normal | Tackle Normal 12 | 13,6 | Hyper Fang Normal 35 | 16,8 | no | 228,48 | gen 1 | no | ||
Raticate | Normal | Quick Attack Normal 10 | 9,4 | Hyper Beam Normal 120 | 27,3 | no | 256,62 | gen 1 | yes | ||
Raticate | Normal | Quick Attack Normal 10 | 9,4 | Hyper Fang Normal 35 | 16,8 | no | 157,92 | gen 1 | yes | ||
Jigglypuff | Normal Fairy | Pound Normal 7 | 16,2 | Body Slam Normal 40 | 24,3 | yes | 393,66 | gen 1 | no | ||
Wigglytuff | Normal Fairy | Pound Normal 7 | 16,2 | Hyper Beam Normal 120 | 27,3 | yes | 442,26 | gen 1 | yes |
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
DECLARE @TablesToMaintenance AS TABLE | |
( | |
DB_Schema VARCHAR(255), | |
DB_Table VARCHAR(255), | |
DB_Index VARCHAR(255), | |
INDEX_Fragmentation FLOAT, | |
OperationToMaintenance VARCHAR(255) | |
) | |
-----------Příprava fragmentovaných tabulek---- | |
INSERT INTO @TablesToMaintenance( |
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
[ | |
{ | |
"Name": "Academy Map", | |
"Tier": [ | |
4, | |
7, | |
11, | |
12, | |
14 | |
], |