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 | |
namespace Drupal\graphql_cookie\Plugin\GraphQL\Mutations; | |
use Drupal\Core\DependencyInjection\DependencySerializationTrait; | |
use Drupal\Core\Plugin\ContainerFactoryPluginInterface; | |
use Drupal\Core\Entity\EntityTypeManagerInterface; | |
use Drupal\graphql\Plugin\GraphQL\Mutations\MutationPluginBase; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Drupal\graphql\GraphQL\Execution\ResolveContext; | |
use GraphQL\Type\Definition\ResolveInfo; |
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 | |
// Configs on Acquia Servers. | |
if (isset($_ENV['AH_SITE_ENVIRONMENT'])) { | |
switch ($_ENV['AH_SITE_ENVIRONMENT']) { | |
case 'dev': | |
$conf['search_api_acquia_overrides']['acquia_search'] = array( | |
'path' => '/solr/**CHANGE_ME**.dev.solr4', | |
'host' => '**CHANGE_ME**.acquia-search.com', | |
'port' => 80, |
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
/** | |
* Check if code is running on production mode. | |
*/ | |
export const isProduction = () => | |
typeof process !== "undefined" && process.env.NODE_ENV === "production" | |
/** | |
* Check if code is running on development mode. | |
*/ | |
export const isDevelopment = !isProduction() |
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
#!/bin/sh | |
# set the configuration variables below, before running the script | |
# get the solr nightly build download link from https://builds.apache.org/job/Solr-Artifacts-4.x/lastSuccessfulBuild/artifact/solr/package/ | |
JETTY_URL="http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-9.0.6.v20130930.tar.gz&r=1" | |
JETTY_HOME="/opt/jetty" | |
JAVA='/usr/bin/java' | |
JETTY_PORT=8983 | |
JETTY_HOST=127.0.0.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
function css_browser_selector(u) { | |
var ua = u.toLowerCase(), | |
is = function(t) { | |
return ua.indexOf(t) > -1 | |
}, | |
g = 'gecko', | |
w = 'webkit', | |
s = 'safari', | |
o = 'opera', | |
m = 'mobile', |
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 | |
/** | |
* Provide Solr dynamic fields as Search API data types. | |
* | |
* This serves as a placeholder for documenting additional keys for | |
* hook_search_api_data_type_info() which are recognized by this module to | |
* automatically support dynamic field types from the schema. | |
* | |
* @return array | |
* In addition to the keys for the individual types that are defined by |
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
#!/bin/bash | |
# | |
# Original for 5.3 by Ruben Barkow (rubo77) http://www.entikey.z11.de/ | |
# release 1 PHP5.4 to 5.3 by Emil Terziev ( foxy ) Bulgaria | |
# Originally Posted by Bachstelze http://ubuntuforums.org/showthread.php?p=9080474#post9080474 | |
# OK, here's how to do the Apt magic to get PHP packages from the precise repositories: | |
echo "Am I root? " | |
if [ "$(whoami &2>/dev/null)" != "root" ] && [ "$(id -un &2>/dev/null)" != "root" ] ; then |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
This is the Solr schema file. This file should be named "schema.xml" and | |
should be in the conf directory under the solr home | |
(i.e. ./solr/conf/schema.xml by default) | |
or located where the classloader for the Solr webapp can find it. | |
For more information, on how to customize this file, please see | |
http://wiki.apache.org/solr/SchemaXml |
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
Index: faq/languages.xml | |
=================================================================== | |
--- faq/languages.xml (revision 335261) | |
+++ faq/languages.xml (working copy) | |
@@ -1,115 +0,0 @@ | |
-<?xml version="1.0" encoding="UTF-8"?> | |
-<!-- EN-Revision: 300233 Maintainer: narigone Status: ready --> | |
-<!-- Reviewed: yes Maintainer: thiago --> | |
- <chapter xml:id="faq.languages" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> | |
- <title>O PHP e as outras linguagens</title> |
NewerOlder