Skip to content

Instantly share code, notes, and snippets.

View briward's full-sized avatar
🐕‍🦺

Bri Ward briward

🐕‍🦺
View GitHub Profile
@briward
briward / gist:8941361
Created February 11, 2014 18:46
Vagrant Boot Error
Timed out while waiting for the machine to boot.
This means that Vagrant was unable to communicate with
the guest machine within the configured ("config.vm.boot_timeout" value)
time period. This can mean a number of things.
If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes. Verify
that authentication configurations are also setup properly, as well.
@briward
briward / app.vue
Created August 11, 2015 17:20
app.vue
<template>
<div class="post full">
<article class="post-content">
<div class="wrap">
<h1 v-text="page.title"></h1>
<div class="date" v-text="page.created"></div>
</div>
<span v-html="page.body"></span>
</article>
</div>
<!-- views-view.tpl.php -->
<div class="<?php print $classes; ?>">
...
<?php if ($rows): ?>
<div class="view-content pure-g">
<?php print $rows; ?>
</div>
<!-- views-view-fields.tpl.php -->
...
<?php foreach ($fields as $id => $field): ?>
<?php if (!empty($field->separator)): ?>
<?php print $field->separator; ?>
<?php endif; ?>
<div class="view-content pure-u-1-2">
ds-2col--node.tpl.php
ds-2col--node-article.tpl.php
ds-2col--node-article-full.tpl.php
<<?php print $layout_wrapper; ?> class="pure-g">
<<?php print $left_wrapper ?> class="pure-u-1-2">
<?php print $left; ?>
</<?php print $left_wrapper ?>>
<<?php print $right_wrapper ?> class="pure-u-1-2">
<?php print $right; ?>
</<?php print $right_wrapper ?>>
-- ds_layouts
--- article_small
---- article_small.inc
---- article-small.tpl.php
<?php
function ds_article_small() {
return array(
'label' => t('Article Small'),
'regions' => array(
'left' => t('Left'),
'right' => t('Right'),
)
);
<div class="pure-g <?php print $classes;?>">
<?php if ($left): ?>
<div class="pure-u-1-2<?php print $left_classes; ?>">
<?php print $left; ?>
</div>
<?php endif; ?>
<?php if ($right): ?>
<div class="pure-u-1-2<?php print $right_classes; ?>">
composer init
# Follow the on screen instructions...
composer require slim/slim "^3.0"