Skip to content

Instantly share code, notes, and snippets.

View mehalter's full-sized avatar

Micah Halter mehalter

View GitHub Profile
@mehalter
mehalter / StatusStreamer.scala
Created March 30, 2016 13:20
Twitter API Stream
package com.mehalter
import twitter4j._
object StatusStreamer {
def main(args: Array[String]): Unit = {
val twitterStream = new TwitterStreamFactory(Util.config).getInstance
twitterStream.addListener(Util.simpleStatusListener)
val austinBox = Array(Array(-97.8, 30.25), Array(-97.65, 30.35))
//twitterStream.sample //sample of tweets
package com.mehalter
import scala.util.Random
import scalaz.stream._
import scalaz.concurrent.Task
object mergeSort {
def main(args: Array[String]): Unit = {
val a: List[Int] = Random.shuffle((1 to 100).toList)