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
| const _ = require('lodash'); | |
| const ensureReqHasAttr = (attr) => ( | |
| (req, res, next) => { | |
| if (!_.has(req, attr)) { | |
| return res.status(400).json({ error: `Request must contain ${attr}` }); | |
| } | |
| next(); | |
| } | |
| ); |
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
| // src/client/test.js | |
| const app = require('../client/app.js'); | |
| const handleErr = require('../../src/lib/handleErr'); | |
| const waitForToken = require('../client/lib/waitForToken'); | |
| waitForToken() | |
| .then(token => app.authenticate({ type: 'token', token })) | |
| .then(() => app.service('tickets').find({}), handleErr('find tickets')) | |
| .then(tickets => { |
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
| accounts-base 1.2.1 A user account system | |
| accounts-password 1.1.3 Password support for accounts | |
| accounts-ui 1.1.6 Simple templates to add login widgets to an app | |
| alanning:roles 1.2.14 Authorization package for Meteor | |
| aldeed:autoform 5.7.1 Easily create forms with automatic insert and update, and automatic reactive validation. | |
| aldeed:collection2 2.5.0 Automatic validation of insert and update operations on the client and server. | |
| aldeed:simple-schema 1.3.3 A simple schema validation object with reactivity. Used by collection2 and autoform. | |
| anti:i18n 0.4.3 Internalization: simplest package | |
| blaze-html-templates 1.0.1 Compile HTML templates into reactive UI with Meteor Blaze | |
| ca333:bitcoinjs 1.6.0 Pure JS bitcoin library |
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
| Iddocs = new Meteor.Collection ('iddocs'); | |
| Iddocs.attachBehaviour('softRemovable'); | |
| Iddocs.helpers({ | |
| update: function (modifier) { | |
| return Meteor.call('updateDoc', this._id, modifier); | |
| }, | |
| approve: function () { |
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
| ``` | |
| accounts-base 1.2.0 A user account system | |
| 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.4.1 Easily create forms with automatic insert and update, and automatic reactive validation. | |
| aldeed:simple-schema 1.1.0* A simple schema validation object with reactivity. Used by collection2 and autoform. | |
| anti:i18n 0.4.3 Internalization: simplest package | |
| cfs:filesystem 0.1.2 Filesystem storage adapter for CollectionFS | |
| cfs:s3 0.1.3 Amazon Web Services S3 storage adapter for CollectionFS |
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
| // Don't leak observes in Meteor.publish callback. | |
| // Define only one instance for server of buyer and distributor ids for reactive counts. | |
| var BuyerQueue = new Meteor.Collection(null); | |
| var DistributorQueue = new Meteor.Collection(null); | |
| function isBuyer (doc) { | |
| return _.include(doc.roles, 'buyer'); | |
| } |
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
| if(urls[i][0]=='/' && urls[i][1]=='/' ) { | |
| char* u1 = urls[i]; | |
| u1 += 2; | |
| while(u1[0] != '/') { | |
| u1++; | |
| } | |
| strcat(url2,u1); | |
| } | |
| else if(!urls[i][0]=='/') { | |
| strcat(url2,"/"); |
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
| Spawn script arguments: | |
| parentPid: 27797 | |
| taskName: cucumber | |
| command: meteor | |
| commandArguments: [ 'run', | |
| '--test-app', | |
| '--port', | |
| '47281', | |
| '--include-tests', | |
| 'cucumber/fixtures', |
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
| /** | |
| * meyer88 | |
| * $SRCFILE | |
| */ | |
| #include <assert.h> | |
| #include <ctype.h> | |
| #include <math.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> |
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
| Verifying that +jjman505 is my Bitcoin username. You can send me #bitcoin here: https://onename.io/jjman505 |