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 | |
$dir = __DIR__; | |
function isValid($product) { | |
return !empty($product[2]); | |
} | |
if (($productsFile = fopen($dir . '/products2.csv', "r")) !== FALSE) { | |
$missingSkus = array_map('trim', file($dir . '/missing-images-sku.csv')); |
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
Plugin::load('Croogo', ['bootstrap' => true]); |
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 | |
function fixFilenameEncoding($filename) { | |
return mb_convert_encoding($filename, 'ISO-8859-2', 'UTF-8'); | |
} | |
$zip = new ZipArchive; | |
$res = $zip->open('./elephant.zip', ZipArchive::CREATE); | |
if ($res === true) { | |
$filename = 'éléphant-man2.txt'; |
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 | |
require_once __DIR__ . '/vendor/autoload.php'; | |
$faker = Faker\Factory::create('fr_FR'); | |
$output = fopen('php://output', 'w+'); | |
$headers = [ | |
'storelocator_id', | |
'name', | |
'status', |
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
{"initialState":{"stores":{"EventStore":{"events":[{"name":"CONTENT_CHANGED","payload":{"content":"C"}},{"name":"CONTENT_CHANGED","payload":{"content":"Ce"}},{"name":"CONTENT_CHANGED","payload":{"content":"Cec"}},{"name":"CONTENT_CHANGED","payload":{"content":"Ceci"}},{"name":"CONTENT_CHANGED","payload":{"content":"Ceci "}},{"name":"CONTENT_CHANGED","payload":{"content":"Ceci e"}},{"name":"CONTENT_CHANGED","payload":{"content":"Ceci es"}},{"name":"CONTENT_CHANGED","payload":{"content":"Ceci est"}},{"name":"CONTENT_CHANGED","payload":{"content":"Ceci est "}},{"name":"CONTENT_CHANGED","payload":{"content":"Ceci est u"}},{"name":"CONTENT_CHANGED","payload":{"content":"Ceci est un"}},{"name":"CONTENT_CHANGED","payload":{"content":"Ceci est un "}},{"name":"CONTENT_CHANGED","payload":{"content":"Ceci est un m"}},{"name":"CONTENT_CHANGED","payload":{"content":"Ceci est un me"}},{"name":"CONTENT_CHANGED","payload":{"content":"Ceci est un mes"}},{"name":"CONTENT_CHANGED","payload":{"content":"Ceci est un mess"}},{"nam |
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
{ | |
"title": "Apache errors", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "type:apache_error", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
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 | |
$baseDir = dirname(dirname(__FILE__)); | |
return array ( | |
'plugins' => | |
array ( | |
'Migrations' => $baseDir . '/vendor/cakephp/migrations/', | |
'Bake' => $baseDir . '/vendor/cakephp/bake/', | |
'DebugKit' => $baseDir . '/vendor/cakephp/debug_kit/', | |
), | |
); |
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
public function get($id) | |
{ | |
$es = ConnectionManager::get(self::defaultConnectionName()); | |
$search = new Search($es); | |
$search->addIndex('indications'); | |
$result = $search->search($id); | |
return new Indication($result->getResults()[0]->getSource()); |
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
data: | |
image: tianon/true | |
volumes: | |
- /var/lib/postgresql/data | |
- /usr/local/taiga/media | |
- /usr/local/taiga/static | |
- /usr/local/taiga/logs | |
back: | |
image: htdvisser/taiga-back |
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
commit 60943790900417c1a56c01b235b098eecbc66045 | |
Author: Pierre Martin <pierre@occitech.fr> | |
Date: Tue May 5 14:19:24 2015 +0200 | |
Fixed delivery choice in one page checkout | |
diff --git a/app/code/community/Chronopost/Chronorelais/controllers/Checkout/OnepageController.php b/app/code/community/Chronopost/Chronorelais/controllers/Checkout/OnepageController.php | |
index 73a66dd..47c1683 100644 | |
--- a/app/code/community/Chronopost/Chronorelais/controllers/Checkout/OnepageController.php | |
+++ b/app/code/community/Chronopost/Chronorelais/controllers/Checkout/OnepageController.php |
OlderNewer