Skip to content

Instantly share code, notes, and snippets.

View dbuschman7's full-sized avatar

David Buschman dbuschman7

  • Lone Star State
View GitHub Profile
@dacr
dacr / zio-learning-sttp-client-basic-1.sc
Last active May 25, 2024 10:19
ZIO learning - Simplest http client using sttp / published by https://github.com/dacr/code-examples-manager #7c34fd86-2780-4a3b-9b7b-99f20c2bf9b0/1be347c38031b5647997a9ec07d28de415f04913
// summary : ZIO learning - Simplest http client using sttp
// keywords : scala, zio, learning, pure-functional, sttp, @testable
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// id : 7c34fd86-2780-4a3b-9b7b-99f20c2bf9b0
// created-on : 2022-07-18T14:40:23+02:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
@fjavieralba
fjavieralba / KafkaLocal.java
Last active March 23, 2021 09:57
Embedding Kafka+Zookeeper for testing purposes. Tested with Apache Kafka 0.8
import java.io.IOException;
import java.util.Properties;
import kafka.server.KafkaConfig;
import kafka.server.KafkaServerStartable;
public class KafkaLocal {
public KafkaServerStartable kafka;
public ZooKeeperLocal zookeeper;