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="letter"> | |
<p>Dear Friends,</p> | |
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent euismod porta tempor. Donec pulvinar turpis nec velit pellentesque quis rhoncus sapien facilisis. Mauris quis massa dui, rhoncus viverra quam. Nulla tempus, augue ut consectetur facilisis, arcu elit pellentesque arcu, sed rutrum orci turpis pulvinar augue. Donec eget arcu mauris. Vestibulum tristique consequat lacus eget laoreet. Integer sed nisl sed nibh pulvinar ornare quis nec quam. Aenean rhoncus ligula ut lectus placerat a commodo quam vulputate. In eu metus turpis.</p> | |
<p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus facilisis erat in nibh auctor at aliquet velit vestibulum. Curabitur turpis diam, malesuada eu consequat eget, ultricies sed nunc. Aenean sed odio massa. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum ornare vulputate congue. Quisque leo metus, condimentum nec molestie et, egestas luctus libero.</p> | |
<p>M |
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
find . -name .svn -exec echo {} \; | |
find . -name .DS_Store -exec echo {} \; |
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 | |
/** | |
* Trim a string at the <!-- more --> tag, for CakePHP | |
* | |
* @author Chris Vogt <http://chrisvogt.me> | |
* @param string $content | |
* @return string $trimmed | |
*/ | |
protected function _trimTheContent($content) { | |
$marker = '<!-- more -->'; |
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 | |
/** | |
* Records | |
* | |
* @var array | |
*/ | |
public $records = array( | |
array( ## USER account | |
'id' => 1, | |
'uuid' => '51ab1e7b-6c5c-4079-ac4d-333232770b3e', |
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 DATABASE_CONFIG { | |
public $default = array(); | |
function __construct() { | |
## --- APPFOG --- ## | |
// Read in the VCAP_SERVICES environment variable, parse the json, and | |
// check to see if it exists. If it does, use the settings for our default |
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 | |
* Process params passed to the search controller, stripping out | |
* any that are not relevant to the query at hand. | |
* | |
* @param array $params Query string parameters pulled from $this->params->query | |
* @return array Query string parameters with the garbage removed | |
*/ | |
private function _extractQueryParams(array $params) { | |
if (isset($params) && is_array($params)) { | |
$acceptableParams = array('SearchString', 'MinHourly', 'MaxHourly', 'Zip', 'IsMale', 'Distance'); |
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 | |
/** | |
* The Wyzant Search schema | |
*/ | |
protected $_schema = array( | |
'SearchString' => array( | |
'type' => 'string', | |
'null' => true, | |
'default' => null, | |
'length' => 255, |
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 | |
/* | |
| ------------------------------------------------------------------- | |
| Featurette Shortcode | |
| ------------------------------------------------------------------- | |
|*/ | |
function lp_featurette( $atts, $content = null ) { | |
// --- wordpress shortcode processing --- |
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 | |
// Clean up the wordpress header by filtering out the following items from WP_HEAD(): | |
function NAMESPACE_header_cleanup() { | |
// Really Simple Discovery | |
remove_action('wp_head', 'rsd_link'); | |
// Windows Live Writer | |
remove_action('wp_head', 'wlwmanifest_link'); |
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 | |
/** | |
* Language Handler. | |
* | |
* Sets the app's configured language based on passed parameter or language | |
* configuration stored in session variable. | |
* | |
* @author C1V0 | |
*/ | |
protected function _langHandler() { |