Skip to content

Instantly share code, notes, and snippets.

var _ = require('underscore');
var Promise = require('bluebird');
var shared = {};
if(me && me.id) {
shared['accessRight.' + me.id] = {$exists: true};
}
var where = {
$or: [{
@regmish
regmish / Directive.js
Created February 1, 2016 17:36
Sample AngularJS Code (Directive from one of my past project)
/*!
* ngTagsInput v2.1.1
* http://mbenford.github.io/ngTagsInput
*
* Copyright (c) 2013-2014 Michael Benford
* License: MIT
*
* Generated at 2014-09-04 01:27:58 -0300
*/
(function() {