Skip to content

Instantly share code, notes, and snippets.

View RodrigoMendes07's full-sized avatar

Rodrigo Mendes RodrigoMendes07

View GitHub Profile
<persistence xmlns="http://xmlns.jcp.org/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence
http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd"
version="2.1">
<persistence-unit name="persistenceUnitName" transaction-type="RESOURCE_LOCAL">
<properties>
<property name="javax.persistence.jdbc.driver" value="org.postgresql.Driver" /> <!-- DB Driver -->
@MichaelBarney
MichaelBarney / MonsterLojaFufillment.js
Last active October 20, 2023 22:19
Exemplo de um 'fufillment' para ser usado no Dialogflow
'use strict';
const functions = require('firebase-functions');
const {WebhookClient} = require('dialogflow-fulfillment');
var nodemailer = require('nodemailer');
function enviarEmail(usuario, produto, quantidade){
// Configurações do Email
var transporter = nodemailer.createTransport({
service: 'gmail',