This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const DATE_OPTIONS = { | |
date: { | |
year: 'numeric', | |
month: 'numeric', | |
day: 'numeric', | |
timeZone: 'America/Sao_Paulo' | |
}, | |
datetime: { | |
year: 'numeric', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:alpine | |
WORKDIR /usr/app | |
COPY package.json ./ | |
RUN npm install | |
COPY . . | |
EXPOSE 3000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict" | |
// ---------------------------------------------------------------------- | |
require('dotenv-extended').load() | |
// Import packages | |
const restify = require('restify') | |
const builder = require('botbuilder') | |
const api = require('./helpers/api') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Funciona na Azure | |
var http = require('http'); | |
var server = http.createServer(function(request, response) { | |
response.writeHead(200, {"Content-Type": "text/plain"}); | |
response.end("Hello World!"); | |
}); | |
var port = process.env.PORT || 3000; | |
server.listen(port); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_Event { | |
type: 'error', | |
isTrusted: false, | |
_yaeti: true, | |
target: | |
W3CWebSocket { | |
_listeners: {}, | |
addEventListener: [Function: _addEventListener], | |
removeEventListener: [Function: _removeEventListener], | |
dispatchEvent: [Function: _dispatchEvent], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<select v-model="day" :name="idDay" :id="idDay" :disabled="disabled"> | |
<option value="">day</option> | |
<option v-for="n in 31" :value="n">{{ n++ }}</option> | |
</select> | |
<select v-model="month" :name="idMonth" :id="idMonth" :disabled="disabled"> | |
<option value="">month</option> | |
<option v-for="(month, key) in months" :value="key+1">{{ month }}</option> | |
</select> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Restify Server CheatSheet. | |
// More about the API: http://mcavage.me/node-restify/#server-api | |
// Install restify with npm install restify | |
// 1.1. Creating a Server. | |
// http://mcavage.me/node-restify/#Creating-a-Server | |
var restify = require('restify'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// Configs and Helpers | |
const config = require('./config'); | |
// Modules import | |
let BlipSdk = require('blip-sdk'); | |
let WebSocketTransport = require('lime-transport-websocket'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function getFile(response) { | |
var result = document.createElement('a'); | |
var contentDisposition = response.headers.get('Content-Disposition') || ''; | |
var filename = contentDisposition.split('filename=')[1]; | |
filename = filename.replace(/"/g,"") | |
return response.blob() | |
.then(function(data) { | |
result.href = window.URL.createObjectURL(data); | |
result.target = '_self'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
import Painel from '@/components/Painel' | |
import { Clients } from './../../resources/clients' | |
export default { | |
name: 'painel', | |
head: { | |
title: { | |
inner: 'Clientes' | |
} |
NewerOlder