Skip to content

Instantly share code, notes, and snippets.

@mscharhag
mscharhag / json-schema-example.json
Created July 21, 2020 07:30
JSON Schema example
// example JSON
{
"name": "Mona Lisa",
"artist": "Leonardo da Vinci",
"description": null,
"dimension": {
"height": 53.0,
"width": 77.0
},
"tags": ["oil", "famous"]
@mscharhag
mscharhag / Java8DateTimeExamples.java
Created February 24, 2014 19:53
Examples for using the Java 8 Date and Time API (JSR 310)
import java.time.*;
import java.time.format.DateTimeFormatter;
import java.time.format.FormatStyle;
import java.time.temporal.ChronoUnit;
import java.time.temporal.TemporalAdjusters;
import java.util.*;
import static java.time.temporal.TemporalAdjusters.*;
public class Java8DateTimeExamples {