This file contains hidden or 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
/** | |
* This spec run some files against JSHint | |
* | |
* Inspired by https://github.com/bkeepers/lucid/blob/master/spec/javascripts/z_jshint_spec.js | |
* @author bkeepers | |
* @author dalexandre | |
* | |
* @require JSHint, jQuery | |
*/ | |
describe('JSHint', function () |
This file contains hidden or 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
diff --git a/lib/Gedmo/Translatable/Entity/Repository/TranslationRepository.php b/lib/Gedmo/Translatable/Entity/Repository/TranslationRepository.php | |
index 50b106e..2451fd0 100644 | |
--- a/lib/Gedmo/Translatable/Entity/Repository/TranslationRepository.php | |
+++ b/lib/Gedmo/Translatable/Entity/Repository/TranslationRepository.php | |
@@ -64,9 +64,14 @@ class TranslationRepository extends EntityRepository | |
$entityClass = $wrapped->getMetadata()->name; | |
$translationMeta = $this->getClassMetadata(); // table inheritance support | |
+ | |
+ // Get the custom translationClass |
This file contains hidden or 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="sf-exceptionreset"> | |
<div class="block_exception"> | |
<div class="block_exception_detected clear_fix"> | |
<div class="illustration_exception"> | |
<img alt="Exception detected!" src="http://damienalexandre.fr/lab/random-fail" style="width:145px" /> | |
</div> | |
<div class="text_exception"> | |
<div class="open_quote"> |
This file contains hidden or 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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.turn(150); |
This file contains hidden or 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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |
This file contains hidden or 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
# for real, I have a mapping and my color is not "indexed" | |
curl -XPUT 'http://localhost:9200/pony_index_tmp' -d ' | |
{ | |
settings: { | |
number_of_shards: 1, | |
number_of_replicas: 0 | |
} | |
}' | |
curl -XPOST "http://localhost:9200/pony_index_tmp/pony/1" -d ' |
This file contains hidden or 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 | |
/** | |
* Return query Filter from a list of query string & allowed Facets | |
* | |
* @param array $query The user query (facet_name => query, facet_name => query...) | |
* @param array $allowed_facets An array of Elastica\Facet | |
* | |
* @return \Elastica\Filter\AbstractFilter (if multiple filters, they are combined in BoolAnd filter) | |
*/ | |
private function getFacetsFilters($query, $allowed_facets) |
This file contains hidden or 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 | |
public function indexAction($page) | |
{ | |
$request = $this->container->get('request'); | |
$routeName = $request->get('_route'); | |
$f_r = $request->query->get('f_r'); | |
This file contains hidden or 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
curl -XDELETE 'http://localhost:9200/pony_index_tmp' | |
curl -XPUT 'http://localhost:9200/pony_index_tmp' -d ' | |
{ | |
"number_of_shards": 5, | |
"number_of_replicas": 1, | |
"analysis": { | |
"analyzer": { | |
"francais": { |
This file contains hidden or 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
curl -XDELETE 'http://localhost:9200/pony_index_tmp' | |
curl -XPUT 'http://localhost:9200/pony_index_tmp' -d ' | |
{ | |
"number_of_shards": 5, | |
"number_of_replicas": 1, | |
"analysis": { | |
"analyzer": { | |
"francais": { |