I hereby claim:
- I am flowck on github.
- I am flowck (https://keybase.io/flowck) on keybase.
- I have a public key ASDczJTt-l_ZDYZo2LxuG5uRwFFhUv9_xpux6TFILxQg-Ao
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // Dependências | |
| const express = require('express'); | |
| const models = require('./models.js'); | |
| const routes = require('./routes.js'); | |
| // Iniciar o express | |
| const app = express(); | |
| // Iniciar a BD | |
| models.openDB(); |
| // Number of users found | |
| this.totalUsers = data.total_count; | |
| // Pagination is the result of total users found devided by | |
| // the number of users listed per request which is 30 | |
| this.pagination = Math.round(data.total_count / 30) + 1; |
| var fs = require('fs'), | |
| https = require('https'), | |
| express = require('express'), | |
| app = express(), | |
| multer = require('multer'); | |
| var storage = multer.diskStorage({ | |
| destination: function(req, file, cb) { | |
| cb(null, '/tmp/'); | |
| }, |
| IncomingMessage { | |
| _readableState: | |
| ReadableState { | |
| objectMode: false, | |
| highWaterMark: 16384, | |
| buffer: [], | |
| length: 0, | |
| pipes: null, | |
| pipesCount: 0, | |
| flowing: null, |
| // Model | |
| var keystone = require('keystone'), | |
| Types = keystone.Field.Types; | |
| // Set new model | |
| var Example = new keystone.List('Example', { | |
| nocreate: true | |
| }); | |
| // Set the fields of your model |