Skip to content

Instantly share code, notes, and snippets.

View johnbahamon's full-sized avatar
Upper

John Bahamon johnbahamon

Upper
View GitHub Profile
const mongoose = require('mongoose');
const transactionSchema = new mongoose.Schema({
coaId: {
type: mongoose.Schema.Types.ObjectId,
ref: 'Coa',
required: true,
},
amount: {
type: Number,
<div class="text-center mb-6">
<h1 class="mb-1 text-3xl font-medium">Verificar código</h1>
<p class="text-lg text-slate-600 font-light">Te enviamos un código al:</p>
<!-- <p class="text-indigo-600 font-light text-lg">{{ countryCodeField + phoneField?.value | phone}}</p> -->
</div>
<div>
<form novalidate [formGroup]="formSmsCode" (ngSubmit)="onSubmitSmsCode()">
<div class="flex flex-wrap justify-center mb-4">
<!-- <label class="flex items-center text-sm text-slate-600 mb-2">Nombre completo</label> -->
const fs = require('fs')
const S3 = require('aws-sdk/clients/s3')
const bucketName = process.env.AWS_BUCKET_NAME
const region = process.env.AWS_BUCKET_REGION
const accessKeyId = process.env.AWS_ACCESS_KEY
const secretAccessKey = process.env.AWS_SECRET_KEY
const s3 = new S3({
region,
{
"page": 461,
"results": [
{
"lineas": [
{
"productoId": "5cba1fb962f65623a477a281",
"cantidad": 1,
"cantidadPorPrecioSinIva": 243697.47,
"cantidadPorPrecioConIva": 290000,
{
"number": 990010015,
"type_document_id": 1,
"resolution_number": "18760000001",
"date": "2020-07-14",
"time": "06:08:12",
"sendmail": true,
"customer": {
"identification_number": 222222222222,
"name": "CONSUMIDOR FINAL",
{
"number": 990000000,
"type_document_id": 1,
"date": "2021-01-28",
"time": "04:08:12",
"resolution_number": "18760000001",
"prefix": "SETP",
"sendmail": true,
"customer": {
"identification_number": 900166483,
data={
LF: '\x0a', //Line feed for new lines
EOL: '\n', //end of line
FEED_CONTROL_SEQUENCES: {
CTL_LF: '\x0a', // Print and line feed
CTL_FF: '\x0c', // Form feed
CTL_CR: '\x0d', // Carriage return
CTL_HT: '\x09', // Horizontal tab
CTL_VT: '\x0b', // Vertical tab
},
https://drive.google.com/open?id=1xa7rTOmnMMFoROwj6Z3p49aAt9zpWyLN
[
{
"_id": "5b74e81dc0c8ee28eccfc503",
"nombre": "Electrodomésticos ",
"children": [
{
"_id": "5b76439508fcc61e2c354787",
"nombre": "Cuidado personal",
"parent": "5b74e81dc0c8ee28eccfc503",
"children": []
this.api.get('categories')
.subscribe(data => {
this.categories = data
var indexed_nodes = {}, tree_roots = [];
for (var k
= 0; k < data.length; k += 1) {
data[k].children = [];
}
for (var i = 0; i < data.length; i += 1) {
indexed_nodes[data[i]._id] = data[i];