Skip to content

Instantly share code, notes, and snippets.

View jessecogollo's full-sized avatar
💭
#IamLibertarian

Jesse cogollo jessecogollo

💭
#IamLibertarian
View GitHub Profile
@jessecogollo
jessecogollo / terminal.sh
Last active September 21, 2015 16:18
error npm rb
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)
@jessecogollo
jessecogollo / example.js
Created August 1, 2015 22:41
schema mongoose
'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,
/**
* 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');
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',
@jessecogollo
jessecogollo / stripeAdapter.js
Created July 6, 2015 18:22
Add legal info account.
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
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 / {
@jessecogollo
jessecogollo / nav-bar.html
Created February 11, 2015 05:12
nav-bar.html (Proyecto base aurelia.io)
<template>
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle Navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
@jessecogollo
jessecogollo / nav-bar.js
Created February 11, 2015 05:00
nav-bar.js (Proyecto base aurelia.io)
import {Behavior} from 'aurelia-framework';
export class NavBar {
static metadata(){ return Behavior.withProperty('router'); }
}
@jessecogollo
jessecogollo / app.html
Created February 11, 2015 04:51
app.html router (Proyecto base aurelia.io) Update
<template>
<import from='./nav-bar'></import>
<nav-bar router.bind="router"></nav-bar>
<div class="page-host">
<router-view></router-view>
</div>
</template>
@jessecogollo
jessecogollo / flickr.html
Created February 9, 2015 03:56
flickr.html (Proyecto base aurelia.io)
<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>