Skip to content

Instantly share code, notes, and snippets.

View robertdavid010's full-sized avatar

Robert David robertdavid010

View GitHub Profile

Kill meteor processes

kill -9 ps ax | grep node | grep meteor | awk '{print $1}'

@robertdavid010
robertdavid010 / bodyEvents.js
Last active March 7, 2017 14:43
Description of DOM event binding in Meteor Blaze
/*
Here we put the code so it is accessible app wide (assuming it's bound to <body>.
This also assumes both the FlowRouter package and the gwendall:body-events fix package.
*/
if (Meteor.isClient) {
Template.body.events({
"click [data-nav]": function (event, templ) {
@robertdavid010
robertdavid010 / home.js
Created March 6, 2017 23:56
Meteor Blaze Template Structure
if (Meteor.isClient) {
Template.home.onCreated(function () {
var self = this;
self.getSomething = function (param) {
// Get more complex stuff here
}
self.doSomething = function (param) {
// Do more complex stuff here