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
(require '[clojure.core.async :as a]) | |
(def xform (comp (map inc) | |
(filter even?) | |
(dedupe) | |
(mapcat range) | |
(partition-all 3) | |
(partition-by #(< (apply + %) 7)) | |
(mapcat flatten) | |
(random-sample 1.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 | |
/** | |
* @Page( | |
* id = "my_page", | |
* title = @Translation("My page") | |
* routes = { | |
* @Route("/another/page/{foo}") | |
* @Route("/my/page/{foo}", "SomeOtherClass::access") | |
* } |
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
id: frontend | |
label: Frontend master display | |
layout: static_layout:layout__core | |
layoutSettings: { } | |
staticContexts: | |
urlgoober: | |
type: string | |
value: path/to/node | |
derivedContexts: | |
node_author: |
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 | |
protected function renderBlocks(Request $request, BoundDisplayInterface $display) { | |
$blockFragments = array(); | |
foreach ($display->getAllOuterBlockConfig() as $id => $config) { | |
$block = $display->getBlock($id); | |
if ($block instanceof SystemMainBlock) { | |
$block->setControllerClosure($request->attributes->get('_content_closure')); |
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
groupings: | |
layout-small: 'Small layout, active until 559px' | |
layout-medium: 'Medium Layout, active at 600px' | |
classes: | |
l-s-1-4: | |
group: layout-small | |
description: 'Span one of four columns' | |
l-s-2-4: | |
group: layout-small | |
description: 'Span two of four columns' |
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
# Put this in your .gitconfig | |
[url "ssh://git@git.drupal.org/sandbox/"] | |
insteadOf = "dos:" | |
[url "ssh://git@git.drupal.org/project/"] | |
insteadOf = "do:" |