Skip to content

Instantly share code, notes, and snippets.

View Tim-Machine's full-sized avatar

Tim Smith Tim-Machine

  • Cohezion.ai
  • Cary,NC
  • 06:27 (UTC -04:00)
View GitHub Profile
AutoForm.hooks({
contactForm:{
onSubmit:function(insertDoc, updateDoc,currentDoc){
if(grecaptcha.getResponse(opt_widget_id).succes = false){
Meteor.Error('Not a Human.')
}
}
}
});
FlowRouter.route('/home', {
// calls just before the action
triggersEnter: [setSite],
action: function() {
// do something you like
});
setSite = function(){
var url = window.location.hostname;
var urlBits = url.split('.');
schema = new SimpleSchema
categoryIdId:
type: String
label: ''
optional: true
autoform:
type: 'select2'
options: ()->
cat = InventoryCategories.find().fetch()
Accounts.config({
forbidClientAccountCreation : true
});
faces =
smile: 'url'
smile2: 'url'
UI.registerHelper 'emoji', (stringsearch)->
#your logic here
{
question: 'what color is the sky'
type : 'mult'
options : {
'red', 'green','yellow'
}
answer : 'red'
}
#inside of addImage::
this._removedImageIds = _.without(this._removedImageIds, image._id);
# inside of save
_.each(this._removedImageIds, function (id) {
this.constructor.imageCollection.remove(id);
}, this);
useraccounts:core 1.11.1 Meteor sign up and sign in templates core package.
accounts-password 1.1.1 Password support for accounts
accounts-ui 1.1.5 Simple templates to add login widgets to an app
alanning:roles 1.2.13 Role-based authorization
aldeed:autoform 5.3.0 Easily create forms with automatic insert and update, and automatic reactive validation.
aldeed:collection2 2.3.3 Automatic validation of insert and update operations on the client and server.
ccorcos:transitioner 2.0.1 Page transitions integrated with Iron Router.
chriswessels:slideout 0.1.9 A touch slideout navigation menu for your mobile web apps
chuangbo:cookie 1.1.0 Simple cookies for browser.
coffeescript 1.0.6 Javascript dialect with fewer braces and semicolons
{
"error": 403,
"reason": "Signups forbidden",
"message": "Signups forbidden [403]",
"errorType": "Meteor.Error"
}
var x = 'value';
data = {$inc:{}}
data.$inc[x]['value1'] = 2