Skip to content

Instantly share code, notes, and snippets.

<article data-type="carousel-location" class="wrapper__location contact-page carousel__main">
<ul class="carousel" id="carousel__location">
<li class="item">
<div class="item__image">
<img class="background__image" src="{{ $location->location_image->image }}" alt="">
<div class="container__location">
<div class="content-location">
<div class="location__collum-one">
<div class="container__location-clock">
<h1 class="extra-large-text">{{{ $location->title }}}</h1>
/**
* Implements hook_install().
*/
function tsjf_update_7118() {
// Populates 'Vocabulary name' vocabulary with taxonomy terms.
$vocabulary = taxonomy_vocabulary_machine_name_load('tsjf_filter');
$terms = array();
$terms[] = t('Term 1');
$terms[] = t('Term 2');
@james-lukensow
james-lukensow / gist:7308564
Last active December 27, 2015 10:09
Adding a hasMany association
Node v0.10.2
Geddy v0.10.5
// Snipped of code in my lib
keywordTopic = _.find(topics, { 'slug': 'xbox' });
// keywordTopic -> http://pastebin.com/fbPtug5B
tweet = geddy.model.Tweet.create({
lookupSlug: _.uniq(lookupSlug, true),
keywords: keyword,
@james-lukensow
james-lukensow / gist:7295891
Created November 3, 2013 23:07
Geddy save association Error
tweetModel.save(function(err, tweet) {
if (err) {
console.log(err);
}
geddy.model.Topic.first({slug: 'xbox'}, function(err, topic) {
if (err) { throw err; }
tweetModel.addTopic(keywordTopic);
tweetModel.save(function(err, tweet) {
console.log('Tweet updated', tweet);
});