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
| import React from 'react'; | |
| import { css } from 'glamor'; | |
| import { DateRangePicker } from 'react-dates'; | |
| const CustomDateRangePicker = () => ( | |
| <div className={styles.wrapper}> | |
| <DateRangePicker /> | |
| </div> | |
| ); |
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
| import React from 'react'; | |
| import styled from 'styled-components'; | |
| import { DateRangePicker } from 'react-dates'; | |
| const Wrapper = styled.div` | |
| .DateRangePickerInput { | |
| border: none; | |
| background: none; | |
| } | |
| .CalendarDay { |
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
| import React from 'react'; | |
| import { DateRangePicker } from 'react-dates'; | |
| const CustomDateRangePicker = () => ( | |
| <div> | |
| <DateRangePicker /> | |
| </div> | |
| ); | |
| export default CustomDateRangePicker; |
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
| <div itemscope itemtype="http://schema.org/Organization"> | |
| <span itemprop="name">DBlinks - Agência Digital</span> | |
| Contact Details: | |
| <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"> | |
| <span itemprop="streetAddress">Rua Rui Barbosa, 710</span> | |
| <span itemprop="postalCode">89900-000</span> | |
| <span itemprop="addressLocality">São Miguel do Oeste, Santa Catarina</span> | |
| <span itemprop="addressCountry">BR</span> | |
| </div> |
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
| public class Test { | |
| public static void main(String[] args) { | |
| InvoiceBuilder builder = new InvoiceBuilder(); | |
| Invoice invoice = builder | |
| .withCompany("company") | |
| .withItem(new Item("item 1", 100.0)) | |
| .withItem(new Item("item 2", 150.0)) | |
| .withItem(new Item("item 3", 250.0)) |
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
| public class InvoiceBuilder { | |
| private String company; | |
| private Calendar date; | |
| private double grossAmount; | |
| private double taxes; | |
| public List<Item> itens = new ArrayList<Item>(); | |
| public String observations; | |
| public InvoiceBuilder withCompany(String company) { |
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
| public class Test { | |
| public static void main(String[] args) { | |
| List<Item> itens = // get the itens | |
| double grossAmount = 0; | |
| for(Item item : itens) { | |
| grossAmount += item.getAmount(); | |
| } | |
| double taxes = grossAmount * 0.05; |
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
| public class Invoice { | |
| private String company; | |
| private Calendar date; | |
| private double grossAmount; | |
| private double taxes; | |
| public List<Item> itens; | |
| public String observations; | |
| public Invoice(String company, Calendar date, |
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
| <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> | |
| <%@ taglib prefix="templates" tagdir="/WEB-INF/tags/templates" %> | |
| <templates:app> | |
| <jsp:body> | |
| hello world | |
| </jsp:body> | |
| </templates:app> |
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
| <%@ tag language="java" description="Application template" pageEncoding="UTF-8" %> | |
| <%@ taglib prefix="templates" tagdir="/WEB-INF/tags/templates" %> | |
| <%@ taglib prefix="t" tagdir="/WEB-INF/tags/" %> | |
| <%@ attribute name="css" fragment="true" %> | |
| <%@ attribute name="js" fragment="true" %> | |
| <!DOCTYPE html> | |
| <html> |