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
trackWoopra = function (name, options) { | |
// woopra | |
var user = Meteor.user(), | |
identification = {}; | |
if (Meteor.user()) { | |
identification = { | |
name: user.profile.name, | |
email: 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
HelpRequests = new Meteor.Collection('helpRequests', { | |
transform: function (doc) { | |
doc.isCancelled = function () { | |
return _.contains(['cancel-requester', 'cancel-helper'], this.status); | |
} | |
return doc; | |
} | |
}); |
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
<script type="text/javascript"> | |
//<![CDATA[[ | |
$SA = {s:204243, asynch: 1}; | |
(function() { | |
var sa = document.createElement("script"); | |
sa.type = "text/javascript"; | |
sa.async = true; | |
sa.src = ("https:" == document.location.protocol ? "https://" + $SA.s + ".sa" : "http://" + $SA.s + ".a") + ".siteapps.com/" + $SA.s + ".js"; | |
var t = document.getElementsByTagName("script")[0]; | |
t.parentNode.insertBefore(sa, t); |
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
// COMO VC TEM Q FAZER: | |
Meteor.users.find().forEach(function (doc) { | |
if (doc.profile && doc.profile.phoneNumber) { | |
timmy++; | |
} else if (doc.profile && doc.profile.postCode && doc.stripe) { | |
kenny++; | |
} | |
}); | |
/*****************************************************************************/ |
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
Books = new Meteor.Collection("books", { | |
schema: { | |
title: { | |
type: String, | |
label: "Title", | |
max: 200 | |
}, | |
author: { | |
type: String, | |
label: "Author", |
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() { | |
$.each(Template, function (name, tmpl) { | |
if (name.indexOf('__') === -1) { | |
UI.insert(UI.render(tmpl), $('#' + name + '-spacebars').get(0)); | |
} | |
}); | |
}); |
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.main.rendered = function () { | |
var self = this; | |
_.defer(function () { | |
self.$('div').plugin(); | |
}); | |
}; | |
// ou tenta isso: | |
Template.main.rendered = 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
DetalheAnuncioIndexController = RouteController.extend({ | |
waitOn: function () { | |
Meteor.subscribe('users'); | |
return Meteor.subscribe('listarAnuncios'); | |
}, | |
data: function () { | |
return Anuncios.findOne(this.params.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
// ---- | |
// Sass (v3.4.12) | |
// Compass (v1.0.3) | |
// ---- | |
.btn { color: white;} | |
.btn-primary { color: blue; } | |
.btn-disabled { color: grey; } | |
.simple-form { |
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
define(function (require) { | |
'use strict'; | |
var React = require('react'); | |
var _ = require('underscore'); | |
var DragDropMixin = require('react-dnd').DragDropMixin; | |
var ItemTypes = require('components/ItemTypes'); | |
var dragSource = { | |
beginDrag: function (component) { |
OlderNewer