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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
Handwash | Laundromat | Laundry Room | ||
---|---|---|---|---|
Cost per load | Depends on upfront costs* | $3-5 | $1-2 | |
Travel time | 0 | 20-40 minutes | 2-10 minutes | |
Time (Active) | 6-15 minutes | 2-10 minutes | 2-10 minutes | |
Time (Passive) | 1-6 hours. | 80+ minutes | 80+ minutes |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
findRestaurant({context,entities}) { | |
return new Promise(function(resolve, reject) { | |
var cuisine = firstEntityValue(entities, 'cuisine'); | |
var neighborhood = firstEntityValue(entities, 'neighborhood'); | |
console.log('cuisine:' + cuisine); | |
console.log('neighborhood:' + neighborhood); | |
if (cuisine && neighborhood) { | |
console.log('both cuisine and neighborhood present'); |
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
module.exports = function(casper, scenario, vp) { | |
casper.mouse.move('.menu-toggle'); | |
casper.click('.menu-toggle'); | |
}; |
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
@api | |
Feature: related content appears on articles | |
In order to help visitors find related content | |
Items of the related content type should appear on articles with the same primary taxonomy | |
Scenario: When a related content item and an article have the same taxonomy, the related content item should display on the article | |
Given "taxonomy" terms: | |
| name | | |
| Tag one | | |
And "related_content" content: |
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
$view = &$vars['view']; | |
if($view->name == 'VIEW_MACHINE_NAME'){ | |
$rows = $vars['rows']; | |
foreach ($rows as $id => $row) { | |
//dpm($view->result[$id]); | |
dpm($view->render_field('field_related_content_type', $id)); | |
} | |
} |
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 foreach ($rows as $id => $row): ?> | |
<?php dpm($view->result[$id]) ?> | |
<?php endforeach; ?> |
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 | |
use Drupal\DrupalExtension\Context\RawDrupalContext; | |
use Behat\Behat\Context\SnippetAcceptingContext; | |
use Behat\Gherkin\Node\PyStringNode; | |
use Behat\Gherkin\Node\TableNode; | |
use Behat\Mink\Exception\ElementNotFoundException; | |
use Behat\Mink\Exception\ExpectationException; | |
use Behat\Behat\Event\StepEvent; |
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 | |
$plugin = array( | |
'single' => TRUE, | |
'title' => t('Category Topic Pane'), | |
'description' => t('A Pane showing the current node\'s children under the main menu, their descriptions, and their children'), | |
'category' => t('Category Topic'), | |
'render callback' => 'category_topics_pane_custom_pane_render', | |
'admin info' => 'category_topics_pane_custom_pane_admin_info', | |
'hook theme' => 'category_topics', | |
); |