Skip to content

Instantly share code, notes, and snippets.

@catchin
catchin / KafkaReceiverTest.kt
Last active June 14, 2019 08:02
reactor-kafka issue with doOnConsumer
@SpringBootTest
@EmbeddedKafka(partitions = 1, topics = ["some-topic"], controlledShutdown = true)
class KafkaReceiverTest {
@Autowired
protected lateinit var kafkaProperties: KafkaProperties
@Autowired
protected lateinit var embeddedKafka: EmbeddedKafkaBroker
@Test
@catchin
catchin / MultilineTextInput.js
Last active July 31, 2018 04:07
This is a workaround for the buggy react-native TextInput multiline on Android. Inspired by the comments on https://github.com/facebook/react-native/issues/12717.
import React, {PropTypes, PureComponent} from 'react';
import {TextInput} from 'react-native';
import debounce from 'debounce';
/**
* This is a workaround for the buggy react-native TextInput multiline on Android.
*
* Can be removed once https://github.com/facebook/react-native/issues/12717
* is fixed.
*