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
SCHEMA: | |
alt | |
title | |
original { | |
url | |
} | |
QUERY: |
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 | |
# http://github.com/w00fz/xdebug-osx | |
command="$1" | |
php_version_dot=$(php -r "\$v=explode('.', phpversion() ); echo implode('.', array_splice(\$v, 0, -1));") | |
php_version="${php_version_dot//./}" | |
xdebug_conf_path="$(brew --prefix)/etc/php/$php_version_dot/conf.d" | |
xdebug_conf_file="ext-xdebug.ini" |
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 | |
filepath=$@ | |
if [ ${filepath: -1} = ":" ]; then | |
filepath="${filepath%?}" | |
fi | |
$HOME/bin/appswitch -a PhpStorm | |
$HOME/bin/pstorm $filepath |
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
/** | |
* Implements hook_install(). | |
* | |
* Performs actions to set up the site for this profile. | |
* | |
* @see system_install() | |
*/ | |
function blubb_install() { | |
global $config_directories; |
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 -xe | |
TARGET=$(date +%s) | |
composer create-project drupal-composer/drupal-project:8.x-dev $TARGET --stability dev --no-interaction -vvv | |
cd $TARGET | |
composer remove composer/installers -vvv | |
composer require --no-update webflo/drupal-core-strict:8.2.x-dev -vvv | |
# composer update --with-dependencies webflo/drupal-core-strict -vvv | |
composer update -vvv |
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 | |
/** | |
* @file | |
* Contains \Drupal\sdag_media\Plugin\Field\FieldWidget\EntityReferenceDialogWidget. | |
*/ | |
namespace Drupal\sdag_media\Plugin\Field\FieldWidget; | |
use Drupal\Component\Utility\NestedArray; |
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
[10:33:08] <GaborHojtsy> https://www.drupal.org/node/2834729 | |
[10:33:09] <Druplicon> https://www.drupal.org/node/2834729 => Create an MVP for adding and re-using Media [#2834729] => 0 comments, 1 IRC mention | |
[10:33:23] mortenson (uid134201@gateway/web/irccloud.com/x-iylcctjfxlhbxtry) joined the channel | |
[10:35:06] <mortenson> webflo: https://www.drupal.org/node/2834729 | |
[10:35:07] <Druplicon> https://www.drupal.org/node/2834729 => Create an MVP for adding and re-using Media [#2834729] => 0 comments, 2 IRC mentions | |
[10:35:21] <GaborHojtsy> webflo: ^^^ | |
[10:38:06] <mortenson> webflo: http://cgit.drupalcode.org/entity_browser/tree/src/Plugin/EntityBrowser/Widget/View.php http://cgit.drupalcode.org/entity_browser/tree/js/entity_browser.view.js | |
[10:41:07] <mortenson> webflo: We implemented our own validation logic for the views checkbox, as in an AJAX view you may have <input /> tags that are dynamically added to the form, which means we have to do $form_state->getUserInput() instead of $form_state->getValues( |
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
#!/usr/bin/env ruby | |
require 'socket' | |
require 'uri' | |
if ARGV.first | |
uri = URI::parse(ARGV.first) | |
if uri.scheme.nil? | |
uri = URI::parse("http://" + ARGV.first) | |
end |
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"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>homebrew.mxcl.httpd24</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/opt/boxen/homebrew/opt/httpd24/bin/httpd</string> | |
<string>-D</string> |
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
{ | |
"name": "fweber/foo", | |
"repositories": [ | |
{ | |
"type": "vcs", | |
"url": "https://git.drupal.org/project/phingdrushtask.git" | |
}, | |
{ | |
"type": "composer", | |
"url": "https://packages.drupal.org/8" |