Skip to content

Instantly share code, notes, and snippets.

View ahinchman1's full-sized avatar

Amanda Hinchman-Dominguez ahinchman1

View GitHub Profile
@mbostock
mbostock / .block
Last active July 8, 2023 20:00
SVG foreignObject Example
license: gpl-3.0
@bekwam
bekwam / FetchResultsSerializer.java
Created December 30, 2018 16:32
Stream-Only Custom Gson
import com.google.gson.*;
import org.apache.commons.lang3.tuple.Pair;
import java.lang.reflect.Type;
import java.util.List;
import java.util.stream.Collector;
//
// Converts a List of Pair<String, Long> into a JSON array of objects where the key of the Pair is
// field name "url" and the value is "fileSize"