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 February 3, 2026 20:18
ZIO learning - Simplest http client using sttp / published by https://github.com/dacr/code-examples-manager #7c34fd86-2780-4a3b-9b7b-99f20c2bf9b0/f0c41330e656b114f39e0324c1358b809e80d576
// summary : ZIO learning - Simplest http client using sttp
// keywords : scala, zio, learning, pure-functional, sttp, @testable
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// 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;