Models | Examples |
---|---|
Display ads | Yahoo! |
Search ads |
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
I20150103-17:12:52.510(0)? document: { _index: 'meteor', | |
I20150103-17:12:52.511(0)? _type: 'packages', | |
I20150103-17:12:52.511(0)? _id: 'benstr:page.js', | |
I20150103-17:12:52.511(0)? _score: 0, | |
I20150103-17:12:52.511(0)? _source: | |
I20150103-17:12:52.511(0)? { packageName: 'benstr:page.js', | |
I20150103-17:12:52.511(0)? lastUpdated: '2014-11-02T04:44:08.940Z', | |
I20150103-17:12:52.512(0)? description: 'Tiny ~1200 byte Express-inspired client-side router', | |
I20150103-17:12:52.512(0)? git: 'https://github.com/benstr/meteor-page-js', | |
I20150103-17:12:52.512(0)? version: '1.4.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
Accounts.onCreateUser(function(options, user){ | |
if( user.emails ){ | |
_.each( user.emails , function( emailObject ){ | |
emailObject.address = emailObject.address.toLowerCase(); | |
}) | |
} | |
return user; | |
}); |
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
//atmosphere packages: jparker:crypto-aes , matb33:collection-hooks | |
var encryptionKey = "adsffe534tryertrrtweGe"; | |
//Before insert Hooks, I decide to use it only in the server. If you use on the client and server, you're encrypting it twice. | |
Todos.before.insert( function( userId , doc ){ | |
doc.text = CryptoJS.AES.encrypt( doc.text , encryptionKey ).toString(); | |
} ); |
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
Exception in queued task: MongoError: connection to [72.2.113.60:27017] timed out | |
at Object.Future.wait (/mnt/data/1/node_modules/fibers/future.js:326:15) | |
at [object Object]._.extend._nextObject (packages/mongo/mongo_driver.js:885:1) | |
at [object Object]._.extend.forEach (packages/mongo/mongo_driver.js:919:1) | |
at [object Object]._.extend.getRawObjects (packages/mongo/mongo_driver.js:968:1) | |
at [object Object]._.extend._pollMongo (packages/mongo/polling_observe_driver.js:144:1) | |
at [object Object].proto._pollMongo (packages/meteorhacks:kadira/lib/hijack/wrap_observers.js:23:1) | |
at Object.task (packages/mongo/polling_observe_driver.js:85:1) | |
at [object Object]._.extend._run (packages/meteor/fiber_helpers.js:145:1) | |
at packages/meteor/fiber_helpers.js:123:1 |
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 funcs : [()->Int] = [] | |
for i in 0...3{ | |
funcs.append({ | |
return i | |
}) | |
} | |
for i in 0...3{ | |
println(funcs[i]()) |
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
[[[[[ ~/playground/meteor/rawCollection ]]]]] | |
=> Started proxy. | |
=> Started MongoDB. | |
=> Started your app. | |
=> App running at: http://localhost:3000/ | |
=> Exited with code: 8 | |
W20150522-01:45:48.227(1)? (STDERR) | |
W20150522-01:45:48.228(1)? (STDERR) /Users/mariorodrigues/.meteor/packages/mongo/.1.1.0.9ya52j++os+web.browser+web.cordova/npm/node_modules/mongodb/lib/mongodb/connection/base.js:246 |
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
Meteor.startup(function(){ | |
var toysCollection = Mongo.Collection.get('MeteorToysCredentials'); | |
if( toysCollection.find().count() === 0 ) { | |
toysCollection.insert({ | |
email : '[email protected]', | |
password :'password' | |
}); | |
} |
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
Router.route('/messages', { | |
layoutTemplate : "app", | |
template : "messages" | |
name: 'my-messages’, | |
}); |
OlderNewer