Skip to content

Instantly share code, notes, and snippets.

View HexoFrontMatterBatchProcess.java
package com.haoyizebo;
import org.yaml.snakeyaml.DumperOptions;
import org.yaml.snakeyaml.Yaml;
import java.io.File;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.text.SimpleDateFormat;
@zhaoyibo
zhaoyibo / DateHelper.java
Created May 14, 2018
Java 8 中 java.util.Date 与 LocalDateTime、LocalDate、LocalTime 互转
View DateHelper.java
package com.windmt.util;
import lombok.NonNull;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.ZoneId;
/**
@zhaoyibo
zhaoyibo / QRCodeUtils.java
Last active Jan 24, 2016
generate QR Code with zxing
View QRCodeUtils.java
import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.image.AffineTransformOp;
import java.awt.image.BufferedImage;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.URL;
import java.util.HashMap;