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
npm rb | |
> [email protected] install /Users/jessejaviercogollo/TD/TDPayment/node_modules/connect-mongo/node_modules/mongodb/node_modules/bson | |
> (node-gyp rebuild 2> builderror.log) || (exit 0) | |
CXX(target) Release/obj.target/bson/ext/bson.o | |
> [email protected] install /Users/jessejaviercogollo/TD/TDPayment/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos | |
> (node-gyp rebuild 2> builderror.log) || (exit 0) |
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
'use strict'; | |
var mongoose = require('mongoose'), | |
Schema = mongoose.Schema; | |
var personSchema = new Schema({ | |
document: {type:String, require: true },//document is require in mongoose | |
name: String, | |
gender: String,//line 17 validates the values allowed. MASCULINO or FEMENINO | |
age:Number, |
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
/** | |
* Created by riclara on 3/5/15. | |
*/ | |
'use strict'; | |
var app = require('../app'); | |
var request = require('supertest'); | |
var assert = require('chai').assert; | |
var modelSpec = require('./payment.model.spec'); |
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
it('add Legal info to account' , function(done){ | |
this.timeout(30000); | |
var legalEntity= { | |
accountId:modelSpec.account.id, | |
firstName:'first_name', | |
lastName:'last_name', | |
day:12, | |
month:12, | |
year:1987, | |
type:'company', |
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
function addLegaInfoAccount(dataLegal, cb){ | |
stripeApi.accounts.update(dataLegal.accountId, | |
{ | |
legal_entity: { | |
first_name:dataLegal.firstName, | |
last_name:dataLegal.lastName, | |
dob:{ | |
day:dataLegal.day, | |
month:dataLegal.month, | |
year:dataLegal.year |
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
upstream bluff { | |
server 127.0.0.1:8080;#nodejs | |
} | |
server { | |
listen 80;// | |
server_name m.domanin.com www.m.domanin.com; | |
root /path/public/; | |
location / { |
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
<template> | |
<import from='./nav-bar'></import> | |
<nav-bar router.bind="router"></nav-bar> | |
<div class="page-host"> | |
<router-view></router-view> | |
</div> | |
</template> |
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
<template> | |
<section> | |
<h2>${heading}</h2> | |
<div class="row"> | |
<div class="col-sm-6 col-md-3" repeat.for="image of images"> | |
<a class="thumbnail"> | |
<img style="width: 260px; height: 180px;" src.bind="image.media.m"/> | |
</a> | |
</div> | |
</div> |