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 DB | |
*/ | |
class DB | |
{ | |
/** | |
* @var | |
*/ | |
protected $config; |
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
#!/usr/bin/env bash | |
# =================================================== | |
# Start Setup | |
# =================================================== | |
cd ~/ | |
# Update yum | |
sudo yum -y update | |
# =================================================== |
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
#!/usr/bin/env bash | |
# Get Selenium and Firefox for headless testing in vagrant box | |
if [ ! -d "/var/selenium" ]; then | |
sudo mkdir /var/selenium | |
cd /var/selenium | |
sudo wget http://goo.gl/PJUZfa selenium-server-standalone.jar | |
fi | |
sudo yum -y install java-1.8.0-openjdk-headless.x86_64 | |
sudo yum -y install firefox.x86_64 | |
sudo yum -y install xorg-x11-server-Xvfb.x86_64 |
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 | |
/* | |
* File: GetMail.php | |
* Description: Receiving mail With Attachments | |
* | |
* @package Pbc\Mail | |
* @author Mitul Koradia <[email protected]> | |
* @author Nate Nolting <[email protected]> | |
* @version: 1.1 | |
*/ |
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 MY_Session extends CI_Session { | |
protected $cliTestingDriver = 'codeception'; | |
public function __construct(array $params = array()) | |
{ | |
parent::__construct($params); |
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 | |
/** | |
* CI3 flat file session driver used for testing with Codeception | |
*/ | |
/** | |
* Class CI_Session_codeception | |
*/ | |
class CI_Session_codeception extends CI_Session_driver |
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
// ------------------------------------------------------------- | |
// Format a time, respecting the locale and local time zone, | |
// and make sure the output string is safe for UTF-8 | |
function safe_strftime($format, $time='', $gmt=0, $override_locale='') | |
{ | |
global $locale; | |
$old_locale = $locale; | |
if (!$time) | |
$time = time(); |
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 | |
/** | |
* Premailer API PHP class | |
* Premailer is a library/service for making HTML more palatable for various inept email clients, in particular GMail | |
* Primary function is to convert style tags into equivalent inline styles so styling can survive <head> tag removal | |
* Premailer is owned by Dialect Communications group | |
* @link http://premailer.dialect.ca/api | |
* @author Marcus Bointon <[email 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
/** | |
* Delete Full Cache or Cache subdir | |
* Skips .htaccess and index.htm(l) files for security | |
* | |
* @access public | |
* @param string | |
* @return void | |
*/ | |
function delete_all($dirname = '') | |
{ |
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
<iframe src="/somelocalfile.htm" frameborder="0" scrolling="no" width="100%" id="myIframe" class="auto-height"></iframe> | |
<script type="text/javascript" src="/js/libs/iframe-auto-height/jquery.iframe-auto-height.js"></script> | |
<script language="JavaScript"> | |
jQuery('iframe.auto-height').iframeAutoHeight({ | |
heightOffset: 10, | |
minHeight: 300 | |
}); | |
</script> |
NewerOlder