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
HOMEBREW_VERSION: 0.9 | |
HEAD: 6a0630ba933dade543cf9ab9ce561c4a2dd7c787 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: 8-core 64-bit sandybridge | |
OS X: 10.7.4 | |
Kernel Architecture: x86_64 | |
Xcode: 4.3.2 | |
GCC-4.0: N/A | |
GCC-4.2: N/A |
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
state[AL]=ALABAMA | |
state[AK]=ALASKA | |
state[AZ]=ARIZONA | |
state[AR]=ARKANSAS | |
state[CA]=CALIFORNIA | |
state[CO]=COLORADO | |
state[CT]=CONNECTICUT | |
state[DE]=DELAWARE | |
state[DC]=DISTRICT OF COLUMBIA | |
state[FL]=FLORIDA |
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
function handleXmlField($bodyXml, $parser="simple") | |
{ | |
$parser = new eZSimplifiedXMLInputParser(null); | |
if ($parser == 'oe') { | |
$parser = new eZOEInputParser(null); | |
} | |
$parser->setParseLineBreaks(false); | |
$document = $parser->process($bodyXml); |
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
if (isset($_FILES['photos']) && !empty($_FILES['photos']['tmp_name'])) { | |
foreach ($_FILES['photos']['tmp_name'] as $i=>$tmp) { | |
if (!$_FILES['photos']['tmp_name'][$i]) { | |
continue; | |
} | |
$fileName = $_FILES['photos']['name'][$i]; | |
$guid = uniqid(); | |
$path = '/tmp/jshwriteupload/' . $guid . '/'; |
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
function add($parentTag, $newKeyword) | |
{ | |
$db = eZDB::instance(); | |
$db->begin(); | |
$tag = new eZTagsObject( array( 'parent_id' => ( $parentTag instanceof eZTagsObject ) ? $parentTag->attribute( 'id' ) : 0, | |
'main_tag_id' => 0, | |
'keyword' => $newKeyword, | |
'depth' => ( $parentTag instanceof eZTagsObject ) ? (int) $parentTag->attribute( 'depth' ) + 1 : 1, | |
'path_string' => ( $parentTag instanceof eZTagsObject ) ? $parentTag->attribute( 'path_string' ) : '/' ) ); |
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 | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: tyler | |
* Date: 1/6/12 | |
* Time: 4:33 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
class AddeZTag | |
{ |
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
{* Custom Embed template: Embed-Latest *} | |
{* User inserts an object, chooses embed-latest as view *} | |
{* Page viewer is then shown the most recent article or media_page under that object *} | |
{cache-block expiry=300 keys=array($object.id, $object.modified,$object.main_node_id)} | |
{def $article = fetch( 'content', 'list', | |
hash( 'parent_node_id', $object.main_node_id , | |
'sort_by', array( 'published', false() ), | |
'class_filter_type', 'include', | |
'class_filter_array', array('media_page', 'article', 'link', 'blog_post'), | |
'limit', 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
<script type="text/javascript"> | |
jwplayer("csps-video-0").setup({ | |
logo: {hide: true}, | |
height: 314, | |
width: 480, | |
controlbar: "bottom", | |
plugins: { | |
"timeslidertooltipplugin-1": { | |
displayhours: "true", | |
marginBottom: "22", |
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="landing-video-surround"> | |
<div class="audio-player" id="LandingPageVideo"></div> | |
</div> | |
<script type="text/javascript"> | |
var videoURL = '{$video-url|trim}', | |
videoHeight = '{$player_height}', | |
videoWidth = '{$player_width}', | |
jwPlayer = {'javascript/player.swf'|ezdesign}, | |
titleCard = '{$title-card-url}', | |
rtmpFile = '{$rtmp-file|trim}', |
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
url = $.url(); | |
params = url.param(); | |
if (params.q != null) { | |
qs = buildQueryString(params); | |
} | |
buildQueryString = function(params) { | |
var param, qs; | |
qs = ''; |
OlderNewer