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
| 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
| 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
| /** | |
| * 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
| '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
| 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' | |
| // important: particle flash 400033001047343432313031 tinker | |
| // permite que se ejecute codigo js. | |
| const spark = require('spark') | |
| spark.on('login', function () { | |
| // If login is successful we get and accessToken, | |
| // we'll use that to call Spark API ListDevices | |
| var devicesPr = spark.listDevices() |
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
| // This #include statement was automatically added by the Particle IDE. | |
| #include "InternetButton/InternetButton.h" | |
| // #include <iostream> | |
| // #include <string> | |
| int tinkerDigitalWrite(String command); | |
| InternetButton b = InternetButton(); | |
| /* This function is called once at start up ----------------------------------*/ | |
| void setup() |
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 "jessecogollo.id" is my Blockstack ID. https://onename.com/jessecogollo |