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:
| // 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 |
| IncomingMessage { | |
| _readableState: | |
| ReadableState { | |
| objectMode: false, | |
| highWaterMark: 16384, | |
| buffer: [], | |
| length: 0, | |
| pipes: null, | |
| pipesCount: 0, | |
| flowing: null, |
| 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/'); | |
| }, |
| // 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; |
| // 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(); |
I hereby claim:
To claim this, I am signing this object:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>Vue.js</title> | |
| <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> | |
| </head> | |
| <body> | |
| <script> | |
| const vueapp = new Vue({ | |
| el: '#vueapp', | |
| data() { | |
| return { | |
| posts: [] | |
| }; | |
| }, | |
| created() { | |
| const API_POSTS = 'https://jsonplaceholder.typicode.com/posts'; |
| <section id="vueapp"> | |
| <article class="post" v-for="post in posts" :key="post.id"> | |
| <h1 class="title">{{ post.title }}</h1> | |
| <p>{{ post.body }}</p> | |
| </article> | |
| </section> |
| <section id="vueapp"> | |
| <article | |
| class="post" | |
| v-for="post in posts" | |
| :key="post.id" | |
| v-if="!loading" | |
| > | |
| <h1 class="title">{{ post.title }}</h1> | |
| <p>{{ post.body }}</p> | |
| </article> |