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 scala.collection.mutable.ListBuffer | |
object Factorization { | |
implicit class FancyInt(val n: Int) extends AnyVal { | |
def primeFactors(): List[Int] = { | |
var factor = 2 | |
var number = n | |
var factors = new ListBuffer[Int]() | |
do { |
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 tailtopic | |
import org.apache.kafka.clients.consumer.KafkaConsumer | |
import java.util.Properties | |
import scala.collection.JavaConverters._ | |
import org.apache.avro.generic.GenericRecord | |
object Main extends App { | |
val consumerProperties = { | |
val props = new Properties() |
OlderNewer