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> | |
$(document).ready(function() { | |
function initFormStorage(registrationFormId) { | |
console.log('Initializing storage for form#' + registrationFormId); | |
/* | |
* when a form field changes store it's value in local storage | |
*/ | |
$("#" + registrationFormId + " input[type=text], #" + registrationFormId + " select, #" + registrationFormId + " textarea").change(function() { | |
$this = $(this); | |
console.log('Update value for ' + $this.attr("name") + 'to ' + $this.val()); |
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
/** | |
* @param string $commandIdentifier E.g. typo3.flow:cache:flush | |
* @param array $settings The TYPO3.Flow settings | |
* @param array $commandArguments Command arguments | |
* | |
* @return string A command line command ready for being exec()uted | |
*/ | |
protected static function buildSubprocessCommand($commandIdentifier, $settings, array $commandArguments = array()) { | |
$subRequestEnvironmentVariables = array( | |
'FLOW_ROOTPATH' => FLOW_PATH_ROOT, |
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
Succeeds: | |
$portionDemandFrom = $q->matching( | |
$q->logicalAnd( | |
$q->lessThanOrEqual('startingFromPersonCount', $this->personCountRange['from']), | |
$q->in('productCategory', $this->generalUtility->prepareOperandForInExpression($this->getProduct()->getCategories())) | |
) | |
)->execute()->getFirst(); | |
Following example would fail: | |
$portionDemandFrom = $q->matching( |
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
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "flowpack/expose", | |
"version": "1.0", | |
"source": { | |
"type": "git", | |
"url": "http://github.com/mneuhaus/Flowpack.Expose.git", | |
"reference": "master" |
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
# # | |
# Security policy for the Cf.Shop package # | |
# # | |
resources: | |
methods: | |
Cf_Shop: 'method(Cf\Shop\Controller\ShopController->.*Action())' | |
Cf_Shop_ShopAdmin_Person: 'method(Cf\Shop\Controller\PersonController->.*Action())' | |
Cf_Shop_ShopAdmin_Order: 'method(Cf\Shop\Controller\OrderController->.*Action())' |
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
// Export Layer Coordinates - Adobe Photoshop Script | |
// Description: Export x and y coordinates to comma seperated .txt file | |
// Requirements: Adobe Photoshop CS5 (have not tested on CS4) | |
// Version: 1.0-beta1.1, 8/31/2011 | |
// Author: Chris DeLuca | |
// Company: Playmatics | |
// =============================================================================== | |
// Installation: | |
// 1. Place script in | |
// Mac: '~/Applications/Adobe Photoshop CS#/Presets/Scripts/' |
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 Double2With4DecimalsFormat { | |
function returnFieldJS() { | |
return ' | |
return value.replace(",", "."); | |
'; | |
} | |
function evaluateFieldValue($value, $is_in, &$set) { | |
if ('' == $value) { | |
return NULL; |
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
Benjamin-Rau-iMac:~ benjaminrau$ git clone https://github.com/benjaminrau/devbox && cd devbox && ./up | |
Cloning into 'devbox'... | |
remote: Counting objects: 117, done. | |
remote: Compressing objects: 100% (85/85), done. | |
remote: Total 117 (delta 19), reused 39 (delta 2) | |
Receiving objects: 100% (117/117), 32.22 KiB | 0 bytes/s, done. | |
Resolving deltas: 100% (19/19), done. | |
Checking connectivity... done | |
Bringing machine 't3devbox' up with 'virtualbox' provider... | |
==> t3devbox: Importing base box 'vagrant-debian-wheezy64'... |
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
# wrap content elements of main content area | |
tt_content { | |
stdWrap.outerWrap.cObject = CASE | |
stdWrap.outerWrap.cObject { | |
key.field = colPos | |
default = TEXT | |
default.value = | | |
0 = CASE | |
0 { | |
key.field = CType |
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
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr( | |
'tx_mamsurvey_domain_model_questionaire', | |
'EXT:mamsurvey/Resources/Private/Language/locallang_csh_tx_mamsurvey_domain_model_questionaire.xml' | |
); | |
Before 6.X: | |
t3lib_extMgm::addLLrefForTCAdescr( | |
'tx_mamsurvey_domain_model_questionaire', | |
'EXT:mamsurvey/Resources/Private/Language/locallang_csh_tx_mamsurvey_domain_model_questionaire.xml' | |
); |