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" |
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
alert("FOO"); |
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
; /Applications/MAMP/bin/php/php7.0.10/conf/ext-xdebug.ini | |
[xdebug] | |
zend_extension="/Applications/MAMP/bin/php/php7.0.10/lib/php/extensions/no-debug-non-zts-20151012/xdebug.so" | |
xdebug.remote_enable = 1 | |
xdebug.remote_autostart = 1 | |
xdebug.max_nesting_level = 3000 |
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 | |
use Drupal\Console\Application; | |
use Drupal\Console\Bootstrap\Drupal as DrupalConsole; | |
use Drupal\Console\ConsoleApplication; | |
set_time_limit(0); | |
$autoLoadFile = __DIR__ . '/../../../autoload.php'; | |
if (file_exists($autoLoadFile)) { |
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 title = { | |
'#type': 'inline_template', | |
'#template': '{{ title }} <strong>foo</strong>', | |
'#context': { | |
'title': item.title | |
} | |
} | |
%} | |
{{ link(title, "foobar", null) }} |