In this tutorial, you will learn how to implement a custom IdentifierGenerator to support auto-generated and manually assigned Ids using Hibernate.
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
| package com.matchilling.websupport.converter; | |
| import java.time.Instant; | |
| import java.time.LocalDate; | |
| import java.time.LocalDateTime; | |
| import java.time.ZoneId; | |
| import java.time.format.DateTimeFormatter; | |
| import java.util.List; | |
| import java.util.Optional; | |
| import java.util.function.Function; |
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
| package cat.encordats.cloudflare; | |
| import lombok.Getter; | |
| /** | |
| * Cloudflare provides several HTTP request headers that include information about the visitor's location, IP, and | |
| * network characteristics. These are automatically added to requests sent to your origin server (your backend) when | |
| * traffic is proxied through Cloudflare. | |
| * <p> | |
| * Cloudflare <a href="https://gist.github.com/matchilling/959f82e72f70325590741c1acfcbfe3a">visitor location headers</a>. |
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
| { | |
| "Statement": [ | |
| { | |
| "Action": [ | |
| "cloudformation:DescribeStackEvents", | |
| "cloudformation:DeleteStack", | |
| "cloudformation:CreateChangeSet", | |
| "cloudformation:DescribeChangeSet", | |
| "cloudformation:ExecuteChangeSet", | |
| "cloudformation:DescribeStacks", |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>ANSIBlackColor</key> | |
| <data> | |
| YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS | |
| AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxARElVO | |
| U1JHQlxOU0NvbG9yU3BhY2VWJGNsYXNzTxAmMC4xODAzOTIxNjEgMC4yMDM5MjE1NzE0 | |
| IDAuMjExNzY0NzA4MgAQAoAC0hQVFhdaJGNsYXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9y |
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
| new com.fasterxml.jackson.databind.ObjectMapper() | |
| .setSerializationInclusion(com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL) | |
| .writeValueAsString(this); |
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
| package com.matchilling.api.rest.data | |
| import com.fasterxml.jackson.core.JsonGenerator | |
| import com.fasterxml.jackson.databind.JsonSerializer | |
| import com.fasterxml.jackson.databind.SerializerProvider | |
| import org.springframework.boot.jackson.JsonComponent | |
| import org.springframework.data.domain.PageImpl | |
| import java.io.IOException | |
| @JsonComponent |
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 centos:centos7 | |
| MAINTAINER Mathias Schilling <[email protected]> | |
| ENV IMAGEMAGICK_VERSION="7.0.9-10" | |
| ENV IMAGEMAGICK_LIB_RPM_URL="https://imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-libs-${IMAGEMAGICK_VERSION}.x86_64.rpm" | |
| ENV IMAGEMAGICK_RPM_URL="https://imagemagick.org/download/linux/CentOS/x86_64/ImageMagick-${IMAGEMAGICK_VERSION}.x86_64.rpm" | |
| RUN export HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" $IMAGEMAGICK_RPM_URL) | |
| RUN if [ $HTTP_CODE != "200" ] ; then echo "$IMAGEMAGICK_RPM_URL does not exist" && exit 1 ; fi |
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
| [{"temperature_C":29.29,"humidity":37,"pressure_hPa":1010,"time":1559916427,"eCO2":400,"TVOC":0},{"temperature_C":29.31,"humidity":37,"pressure_hPa":1010,"time":1559916432,"eCO2":400,"TVOC":0},{"temperature_C":29.38,"humidity":37,"pressure_hPa":1010,"time":1559916437,"eCO2":400,"TVOC":0},{"temperature_C":29.41,"humidity":37,"pressure_hPa":1010,"time":1559916442,"eCO2":400,"TVOC":0},{"temperature_C":29.43,"humidity":37,"pressure_hPa":1010,"time":1559916447,"eCO2":400,"TVOC":0},{"temperature_C":28.86,"humidity":38,"pressure_hPa":1010,"time":1559916485,"eCO2":400,"TVOC":0},{"temperature_C":28.94,"humidity":38,"pressure_hPa":1010,"time":1559916490,"eCO2":400,"TVOC":0},{"temperature_C":29.03,"humidity":37,"pressure_hPa":1010,"time":1559916495,"eCO2":400,"TVOC":0},{"temperature_C":29.09,"humidity":37,"pressure_hPa":1010,"time":1559916500,"eCO2":400,"TVOC":0},{"temperature_C":29.13,"humidity":37,"pressure_hPa":1010,"time":1559916505,"eCO2":400,"TVOC":0},{"temperature_C":29.17,"humidity":37,"pressure_hPa":1010,"time" |
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
| .error-icon { | |
| position: relative; | |
| display: inline-block; | |
| width: 90px; | |
| height: 90px; | |
| background-color: #fff; | |
| border-radius: 50%; | |
| } | |
| .error-face { |
NewerOlder