Skip to content

Instantly share code, notes, and snippets.

View birdayz's full-sized avatar
🔥
nerden

Johannes Brüderl birdayz

🔥
nerden
View GitHub Profile
@birdayz
birdayz / index.html
Last active January 11, 2019 20:27
Infinimesh recursive object transformation for vuetify tree
<div id="app">
<v-app id="inspire">
<v-treeview :items="items"></v-treeview>
</v-app>
</div>
@birdayz
birdayz / gist:5f1a4575f037e81547e2b7c0677e8917
Created March 8, 2019 20:53
grpc-gateway example option
// option (grpc.gateway.protoc_gen_swagger.options.openapiv2_schema) = {
// example : {value : '{"parent" : "0x01", "name":"name of child", "namespace" : "abc"}'}
// };
package com.eon.iotcore.datapoint.compute;
import com.eon.iotcore.datapoint.DatapointChangedEvent;
import java.time.Instant;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.streams.processor.TimestampExtractor;
// Extracts the embedded timestamp of a record (giving you "event-time" semantics).
public class MyTimestampExtractor implements TimestampExtractor {
resource "google_dns_managed_zone" "zone" {
name = "my-domain"
dns_name = "my-domain.com."
}
resource "google_dns_managed_zone" "sub_zone" {
name = "my-subdomain"
dns_name = "subdomain.my-domain.com."
}
resource "google_dns_record_set" "zone_subzone_ns" {
name = "subdomain.${google_dns_managed_zone.zone.dns_name}"
type = "NS"
ttl = 300
managed_zone = google_dns_managed_zone.zone.name
rrdatas = google_dns_managed_zone.sub_zone.name_servers
}