Skip to content

Instantly share code, notes, and snippets.

View joaomantovani's full-sized avatar
😎

João Mantovani joaomantovani

😎
View GitHub Profile
// Generated by https://quicktype.io
//
// To change quicktype's target language, run command:
//
// "Set quicktype target language"
export type FirebaseUserUID = string;
export interface FirebaseAuthInterface {
uid: FirebaseUserUID;
openapi: 3.0.0
info:
version: '1.0.0'
title: MarketPlace - Grupo 02
description: |
#
Essa API tem como objetivo atender os requisitos de contexto de um Marketplace
##
<meta name="title" content="Estudio A Pilates | Santa Barbara" /> /** Titulo que aparece na aba do navegador, importante */
<meta name="geo.placename" content="Estudio A Pilates" /> /** Titulo que aparece na geolocalizacao */
<meta property="og:site_name" content="Estudio A Pilates" /> /** Titulo que aparece quando gera a imagem de compartilhar o site */
<meta property="og:title" content="Estudio A Pilates" /> /** Titulo que aparece quando gera a imagem de compartilhar o site */
<meta name="description" content="Estudio A é focado em pilates para pessoas de meia idade e blalbalblablalba....." /> /** COLOCAR UMA DESCRICAO DE ATE 150 CARACTERES SOBRE O ESTUDIO DE PILATES (APARECE NO GOOGLE EMBAIXO DO TITULO NO RESULTADO DE PESQUISA, MUITO IMPORTANTE) */
<meta property="og:type" content="business.fitness" /> /** Informa que é um negocio sobre fitness */
<meta name="keywords" content="Estudio, Pilates, Fitness, Santa Barbara" /> /** Nao colocar mais que 5 palavras chaves, pouco utilizada hj em dia */
<meta name=
package tpcw.service;
/*
* TPCW_Database.java - Facade for all the code involved with data
* accesses. These
* functions are called by many of the servlets.
*
************************************************************************
*
* This is part of the the Java TPC-W distribution,
* written by Harold Cain, Tim Heil, Milo Martin, Eric Weglarz, and Todd
public List<Book> getBestSellers(String subject) throws BestSellersNotFoundException {
Map<Book, Integer> map = new HashMap<Book, Integer>();
Calendar calendar = Calendar.getInstance();
calendar.add(Calendar.YEAR, -1);
Date date = calendar.getTime();
for (Order order: ordersById) {
if (order.getDate().compareTo(date) > 0) {
for (OrderLine orderLine: order.getLines()) {