$ git clone [email protected]:berkeley-food-recommendations/data-gathering.git
You're cloning the main repository - be careful! We're going to enforce a "no committing to master directly" rule, so no committing directly to master, please.
<?php | |
function _load_header_image($variables) { | |
if ($node = $variables['node']) { | |
// Load main_image | |
$file = $node->field_main_image->entity; | |
if ($file) { | |
$variables = array( | |
'responsive_image_style_id' => 'header_image', | |
'uri' => $file->getFileUri(), |
<?php | |
/** | |
* @Given /^The element "(?P<selector>[^"]*)" should have a css property "(?P<property>[^"]*)" with a value of "(?P<value>[^"]*)"$/ | |
* | |
* @TODO Need to find a way to test for css styles on elements. | |
* Or possibly we should just be checking the markup, and not the styling... Research this more. | |
*/ | |
public function assertElementHasCssValue($selector, $property, $value) | |
{ | |
$page = $this->getSession()->getPage(); |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |