This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.junit.Test; | |
| import java.util.Arrays; | |
| import java.util.Optional; | |
| import static org.hamcrest.core.Is.is; | |
| import static org.junit.Assert.assertThat; | |
| /** | |
| * Created by ton on 09/12/16. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package testing; | |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.beans.factory.annotation.Value; | |
| import org.springframework.context.ApplicationContext; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.PropertySource; | |
| import org.springframework.test.context.ContextConfiguration; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.kpn.datalab.mab; | |
| import org.apache.flink.api.common.functions.AggregateFunction; | |
| import org.apache.flink.api.java.tuple.Tuple2; | |
| import org.apache.flink.streaming.api.datastream.DataStreamSource; | |
| import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; | |
| import org.apache.flink.streaming.api.functions.source.RichSourceFunction; | |
| import org.apache.flink.streaming.api.windowing.assigners.TumblingProcessingTimeWindows; | |
| import org.apache.flink.streaming.api.windowing.time.Time; | |
| import org.junit.Test; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.kpn.datalab.mab; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import lombok.extern.slf4j.Slf4j; | |
| import org.apache.flink.api.common.functions.RichMapFunction; | |
| import org.apache.flink.api.common.restartstrategy.RestartStrategies; | |
| import org.apache.flink.api.java.utils.ParameterTool; | |
| import org.apache.flink.configuration.Configuration; | |
| import org.apache.flink.streaming.api.datastream.DataStreamSource; | |
| import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| # check the status of Kafka connectors on a given host | |
| import urllib2 | |
| import json | |
| import sys, getopt | |
| def main(argv): | |
| hostname = "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from abc import ABC, abstractmethod | |
| class ProxySubject(ABC): | |
| """ | |
| The interface we will use in our proxy and subject. | |
| """ | |
| @abstractmethod | |
| def do_stuff(self, arg): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "net/http" | |
| ) | |
| type Astronaut struct { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package io.axual.connect.plugins.kafka; | |
| import org.junit.jupiter.api.Test; | |
| import static org.junit.jupiter.api.Assertions.assertEquals; | |
| import static org.junit.jupiter.api.Assertions.assertThrows; | |
| public class Tryout { | |
| @Test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "encoding/csv" | |
| "encoding/json" | |
| "encoding/xml" | |
| "fmt" | |
| "log" | |
| "os" | |
| "strconv" |