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
var request = require('supertest'), | |
should = require('should'), | |
app = require('../server'); | |
var Cookies; | |
describe('Functional Test <Sessions>:', function () { | |
it('should create user session for valid user', function (done) { | |
request(app) | |
.post('/v1/sessions') |
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
var winston = require('winston'); | |
var fs = require('fs'); | |
fs.mkdir('./logs', function(err) { | |
if (err) throw err; | |
}); | |
// Define levels to be like log4j in java | |
var customLevels = { | |
levels: { |
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
cd hoodie-plugin-chat && npm link && cd .. && | |
cd hoodie-plugin-cordovafb && npm link && cd .. && | |
cd hoodie-plugin-image && npm link && cd .. && | |
cd hoodie-plugin-notification && npm link && cd .. && | |
cd hoodie-plugin-oauthio && npm link && cd .. && | |
cd hoodie-plugin-paranoia && npm link && cd .. && | |
cd hoodie-plugin-profile && npm link && cd .. && | |
cd hoodie-plugin-pubsub && npm link && cd .. && | |
cd hoodie-plugin-socialmedia && npm link && cd .. && | |
cd hoodie-utils-plugins && npm link && cd .. |
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
import { Component } from "React"; | |
export var Enhance = ComposedComponent => class extends Component { | |
constructor() { | |
this.state = { data: null }; | |
} | |
componentDidMount() { | |
this.setState({ data: 'Hello' }); | |
} | |
render() { |
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
var express = require('express'); | |
var app = express(); | |
var mongo = require('mongodb'); | |
var MongoClient = require('mongodb').MongoClient; | |
var GridStore = mongo.GridStore; | |
var ObjectID = require('mongodb').ObjectID; | |
function StreamGridFile(req, res, GridFile) { |
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
/** | |
* `objFromFlatKeys` Convert the template string into a tree path and set the value into the referenced object path. | |
* | |
* @param {string} strPath - template string path to convert in nested object tree | |
* @param {Object} prevobj - reference for the nested object result | |
* @param {*} value - value to set at the end of the nested object tree | |
* | |
* @example | |
* // define the target object | |
* const obj = {}; |
OlderNewer