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 | |
// I have Groups. A group can have many discussions. A single discussion can have many posts. | |
// models/Group.php | |
public function delete() | |
{ | |
// Check for discussions belonging to the group first | |
if ($this->discussions) { | |
foreach ($this->discussions as $discussion) { | |
$discussion->delete(); | |
} |
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
.well { | |
border: 1px solid #ccc; | |
.border-radius(6px 6px 0 0); | |
.box-shadow(0px 0px 0px 1px #eee); | |
header { | |
.border-radius(6px 6px 0 0); | |
#gradient > .vertical(@navbarBackground, #ddd ); | |
margin: -19px -19px 20px -19px; | |
border-bottom: 1px solid #ccc; | |
padding: 10px; |
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
Template.profile.onCreated(function () { | |
this.subscribe('profile', Router.current().params.username) | |
}) | |
Template.profile.events({ | |
'click .follow-me': function (event, template) { | |
console.log(template.data) // null | |
//Meteor.call('follow', this.user._id); | |
} | |
}); |
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
Template.todo.onCreated(function() { | |
var template = this; | |
template.limit = new ReactiveVar(5); | |
}); | |
Template.todo.rendered = function () { | |
var template = this; | |
Vue.use(window['vue-validator']); |
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
SwipeStationHub git:(master) ssh -vvv swipestationhub-node-01.clockhosting.com | |
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 | |
debug1: Reading configuration data /Users/niall/.ssh/config | |
debug1: /Users/niall/.ssh/config line 61: Applying options for * | |
debug1: Reading configuration data /etc/ssh_config | |
debug1: /etc/ssh_config line 20: Applying options for * | |
debug2: ssh_connect: needpriv 0 | |
debug1: Connecting to swipestationhub-node-01.clockhosting.com [81.29.68.189] port 22. | |
debug1: Connection established. | |
debug3: Incorrect RSA1 identifier |
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
- var image = article.images.getImage('Teaser Landscape Big') | |
img(src=image.getUrl('9:4', 860), alt=image.properties.name) |
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
// ---- | |
// Sass (v3.4.9) | |
// Compass (v1.0.1) | |
// ---- | |
// vars | |
$darkBlue: #002c42; | |
$lightBlue: #1160a5; | |
// Essentially a function |
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
function equalizeHeight(watch, target) { | |
var maxHeight = -1; | |
$(watch).each(function () { | |
maxHeight = maxHeight > $(this).outerHeight() ? maxHeight : $(this).outerHeight(); | |
}); | |
$(target).each(function () { | |
$(this).outerHeight(maxHeight); | |
}); | |
} |
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
'use strict'; | |
// generated on 2014-09-12 using generator-ee-foundation 0.1.0 | |
var gulp = require('gulp'); | |
var spawn = require('child_process').spawn; | |
var browserSync = require('browser-sync'); | |
var reload = browserSync.reload; | |
var gutil = require('gulp-util'); | |
var runSequence = require('run-sequence'); |
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
var mediaStateContainer = document.querySelector('.mq'), | |
mediaState = window.getComputedStyle(mediaStateContainer, ':before').getPropertyValue('content'); | |
if (mediaState === 'small' ) { | |
// JS to run when we're on mobile. | |
} |