var gulp = require('gulp');
var puglint = require('gulp-pug-lint');
gulp.task('pugLint', function() {
return gulp
.src(./src/views/**/*.pug)
.pipe(puglint());
I hereby claim:
- I am rhyslbw on github.
- I am rhyslbw (https://keybase.io/rhyslbw) on keybase.
- I have a public key ASA1LtOQ9oH8reuT7-p4I5knrALphM_uy5LzxrfTjbeEEwo
To claim this, I am signing this object:
This file contains hidden or 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
describe 'Space.accounts.User', -> | |
beforeEach -> | |
@createUser = new Space.accounts.CreateUser { | |
targetId: new Guid | |
username: new Username('testUsername') | |
email: new EmailAddress('[email protected]') | |
password: new Password('123') | |
} |
This file contains hidden or 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
Logs = new Mongo.Collection 'logs' | |
# Collection capped at 1GB and | |
# http://docs.mongodb.org/manual/core/capped-collections/ | |
# https://github.com/meteor/meteor/blob/07b6a2245a1e091830844881e7376c38adda3592/packages/mongo/collection.js | |
Logs._createCappedCollection 1000000000, 8000000 | |
Meteor.methods | |
'log': (source, event) -> | |
@unblock() |
This file contains hidden or 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
/** | |
* | |
* @constructor | |
* @param {string} name A name for the queue instance | |
* @param {Object} options - options.driver String Alternative Mongo Url, options.customIndexes Object, options.setLogStream String, options.autoStart Boolean, options.security Object, options.jobsPublish Object, options.queues Array, | |
* @returns {undefined} | |
* @public | |
*/ | |
This file contains hidden or 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
# on the server: server.coffee | |
Metrics = (name, aggregationQuery, collection, interval) -> | |
@name = name | |
@aggregationQuery = aggregationQuery | |
@collection = collection | |
@interval = interval or 1000*10 | |
@_collectionName = 'metrics-transport' | |
Metrics.prototype._getCollectionName = -> "metrics-#{@name}" |
Wrap call or code with Meteor.defer() (same as Meteor.setTimeout()with value of 0) to allow the method to continue executing without waiting for the task to fully complete.
Meteor.defer(function(){
Email.send({
from: "[email protected]",
to: follower,
subject: "New todo added",
- Node.js debugger
- em Scaffolding Tool
- Node DDP Tools
- Node DDP client
https://github.com/node-inspector/node-inspector
npm install -g node-inspector
DOM Manipulation, Event Handling, AJAX
jQuery is a fast, small, and feature-rich JavaScript library. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.
meteor add jquery
npm install jquery
bower install jquery
##Underscore.js Utility Belt of Helpers