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
__PARTS__ | |
Methods (required!!!) | |
((?:render|extends|include)\s*\(?\s*(?:'|")):? | |
Level | |
(?:((?:\w|-|_)+)(?::|\/)) | |
Last Level (required!!!) | |
(?:((?:\w|-|_)+)(?::|\/)?) |
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 | |
/** | |
* @return resource | |
*/ | |
public function getStream() | |
{ | |
if ($this->stream) { | |
if(get_resource_type($this->stream) != "stream"){ |
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
1. Make Home Directory for SShH keys. | |
c://users/UserName/.SSH (for Windows 7) | |
2. Generate SSH key by command: | |
ssh-keygen -t rsa -C "[email protected]" | |
# Creates a new ssh key, using the provided email as a label | |
Generating public/private rsa key pair. | |
It's created a pair of keys - private and public in home dir .SSH | |
C:\Users\SuvorovAG\.ssh\id_rsa |
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 | |
$actual_hour = date('H'); | |
$condition[] = 'hour_' . $actual_hour; | |
$lifetime = 3600; // 1h | |
$mdCondition = md5($condition); | |
if (!Cache::load($mdCondition)) { | |
$objects->setOrderKey("RAND($actual_hour)", false); | |
Cache::save( | |
$objects, |
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
<p> </p> | |
<p> </p> | |
<p> </p> | |
<p><strong><span style="font-size:18px"><span style="color:#009fe3"><span style="font-family:Lucida Sans Unicode,Lucida Grande,sans-serif">Noyoco</span></span></span></strong></p> | |
<p><span style="font-size:16px"><span style="font-family:Lucida Sans Unicode,Lucida Grande,sans-serif"><a href="tel:+43 664 9183517" style="color:#af6983"><span style="color:#e5007d">+43 664 9183517</span></a><br /> | |
<span style="color:#e5007d">[email protected]<br /> |
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 | |
/** | |
* simple method to encrypt or decrypt a plain text string | |
* initialization vector(IV) has to be the same when encrypting and decrypting | |
* | |
* @param string $action: can be 'encrypt' or 'decrypt' | |
* @param string $string: string to encrypt or decrypt | |
* | |
* @return string | |
*/ |
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
if(device.mobile()){ | |
var nearToBottom = 2000; | |
} else { | |
var nearToBottom = 1000; | |
} | |
$(window).scroll(function () { | |
if ($(window).scrollTop() + $(window).height() > $(document).height() - nearToBottom) { | |
relaod(); | |
} |
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 | |
$viewRenderer = \Zend_Controller_Action_HelperBroker::getExistingHelper("viewRenderer"); | |
$view = $viewRenderer->view; | |
$link = $view->url(array( | |
"language" => $language, | |
"name" => $obj->getTitle(), | |
"id" => $obj->getAlpsteinid() | |
), |
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
mysqldump -uuser1 -ppassword1 database1 > backup.sql | |
sed '/^\/\*\!50013 DEFINER/d' backup.sql > backup_without_50013.sql | |
mysql -u user2 -ppassword2 -D database2 < backup_without_50013.sql |
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
<select class="form-control" name="uhrzeit" id="uhrzeit"> | |
<option value="00:00">00:00</option> | |
<option value="00:15">00:15</option> | |
<option value="00:30">00:30</option> | |
<option value="00:45">00:45</option> | |
<option value="01:00">01:00</option> | |
<option value="01:15">01:15</option> | |
<option value="01:30">01:30</option> | |
<option value="01:45">01:45</option> | |
<option value="02:00">02:00</option> |
NewerOlder