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 / 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="#">
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 / 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
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',
/**
* 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');
@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,
@jessecogollo
jessecogollo / terminal.sh
Last active September 21, 2015 16:18
error npm rb
npm rb
> bson@0.2.19 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
> kerberos@0.0.9 install /Users/jessejaviercogollo/TD/TDPayment/node_modules/connect-mongo/node_modules/mongodb/node_modules/kerberos
> (node-gyp rebuild 2> builderror.log) || (exit 0)
'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 #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()
Verifying that "jessecogollo.id" is my Blockstack ID. https://onename.com/jessecogollo