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 | |
$items = eZPersistentObject::fetchObjectList( eZBinaryFile::definition(), null, array( ), null, null, true ); | |
foreach ($items as $item){ | |
$original = $item->attribute('original_filename'); | |
$filename = $item->attribute('filename'); | |
$original_has_extension = !(strpos($original, '.') === false); | |
$has_extension = !(strpos($filename, '.') === false); |
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
{set-block scope=root variable=my_var_name} | |
{let selected_id_array=$attribute.content} | |
{section var=Options loop=$attribute.class_content.options} | |
{section-exclude match=$selected_id_array|contains( $Options.item.id )|not} | |
{$Options.item.name|wash( xhtml )}{delimiter}<br/>{/delimiter}{/section} | |
{/let} | |
{/set-block} |
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
{set-block scope=root variable=my_var_name}{attribute_view_gui attribute=$node.data_map.myattribute}{/set-block} |
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
process.stdin.resume(); | |
process.stdin.setEncoding("ascii"); | |
var input = ""; | |
process.stdin.on("data", function (chunk) { | |
input += chunk; | |
}); | |
process.stdin.on("end", function () { | |
// mi codigo | |
for (var i=0; i<input; i++){ |
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 processData(input) { | |
var n = parseInt(input); | |
var number = numberToArray(n); | |
while(n > 1){ | |
number = multiplyArray(number, numberToArray(n-1)); | |
n--; | |
} | |
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 processData(input) { | |
var is = input.split('\n'); | |
var is1 = is[0].split(' '); | |
var is2 = is[1].split(' '); | |
var result = 10000; | |
var date_ret = new Date(is1[1] + '-' + is1[0] + '-' + is1[2]); | |
var date_max = new Date(is2[1] + '-' + is2[0] + '-' + is2[2]); |
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 processData(input) { | |
var is_pm = input.indexOf('PM') != -1; | |
var s = input.replace('PM', '').replace('AM', '').split(':'); | |
if (is_pm && s[0] != '12') s[0] = parseInt(s[0]) + 12; | |
if (!is_pm && s[0] == '12') s[0] = '00'; | |
process.stdout.write(s[0] + ':' + s[1] + ':' + s[2]); | |
} |
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
----------------- | |
-- please first activate or remove non activated users from the administration interface /user/unactivated | |
----------------- | |
-- ezcontentobject_attribute | |
DELETE FROM `ezcontentobject_attribute` WHERE `contentobject_id` IN (SELECT `contentobject_id` FROM `ezuser` WHERE `contentobject_id` NOT IN (SELECT `contentobject_id` FROM `ezcontentobject_tree`)); | |
-- ezcontentobject |
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
return array( | |
'eZOrder' => 'extension/orderstatenotifier/classes/ezorder.php' | |
); |
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
define( 'EZP_AUTOLOAD_ALLOW_KERNEL_OVERRIDE', true ); |
OlderNewer