Skip to content

Instantly share code, notes, and snippets.

@atr0phy
atr0phy / httpie_post_array_object.sh
Created September 29, 2019 07:34
httpie post arrays of JSON objects
echo '[{"name":"test1","data":"data1"}, {"name":"test2","data":"data2"}]'| http POST http://localhost:8080/endpoints
@atr0phy
atr0phy / aws_batch_dashboard.json
Created July 12, 2020 14:35
grafana dashboard for aws_batch
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@atr0phy
atr0phy / Example.kt
Created July 23, 2022 09:27
Define generics function in kotlin companion object
import java.util.UUID
import kotlin.reflect.full.primaryConstructor
interface ExampleId {
val value: UUID
}
interface ExampleIdFactory<T: ExampleId>
data class HogeId(override val value: UUID): ExampleId {