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
object DatomicPricing { | |
object Schema extends VersionedSchemaComponent("0.0.1") { | |
object ns { | |
val pricing = new Namespace("Pricing") | |
} | |
val isIndexed = true | |
val isComponent = true | |
val quoteId = Attribute(ns.pricing / "QuoteId", SchemaType.string, Cardinality.one).withUnique(Unique.identity) |
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 com.google.common.util.concurrent.ThreadFactoryBuilder | |
import java.io.ByteArrayInputStream | |
import java.util.concurrent.Executors | |
import java.util.concurrent.atomic.AtomicInteger | |
import scala.util.Random | |
import scalaz.concurrent.Task | |
object GatherApp extends App { | |
lazy val executor = { |
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 com.google.common.util.concurrent.ThreadFactoryBuilder | |
import java.io.ByteArrayInputStream | |
import java.util.concurrent.Executors | |
import java.util.concurrent.atomic.AtomicInteger | |
import scala.util.Random | |
import scalaz.concurrent.Task | |
import scalaz.stream._ | |
import scalaz.stream.io._ | |
object ChannelApp extends App { |
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 pellucid.data.util | |
import java.util.concurrent.Executors | |
import java.util.concurrent.atomic.AtomicInteger | |
import org.joda.time.format.DateTimeFormat | |
import scala.util.Random | |
import scalaz.concurrent.Task |
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 java.io.ByteArrayInputStream | |
import scalaz.stream.io | |
import scalaz.std.map._ | |
import scalaz.std.vector._ | |
object CsvParsing extends App { | |
val csv = |
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 java.util.concurrent.atomic.AtomicInteger | |
import scala.concurrent.ExecutionContext.Implicits.global | |
import scala.concurrent.Future | |
import scala.concurrent.future | |
import scala.util.{Failure, Success} | |
import scalaz.concurrent.Task | |
import scalaz.stream.Process.End | |
import scalaz.stream._ | |
import scalaz.{-\/, \/-} |
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 pellucid.dataloader.datascope | |
import com.google.common.util.concurrent.ThreadFactoryBuilder | |
import java.util.concurrent._ | |
import java.util.concurrent.atomic.AtomicInteger | |
import org.slf4j.LoggerFactory | |
import scala.concurrent.duration._ | |
import scala.concurrent.{Await, Future} | |
import scala.util.Random |
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
/** | |
* Mention of focus company | |
* | |
* @param ticker ticker of focus company | |
* @param source source of this mention (Twitter, RSS, etc...) | |
* @param sourceId source specific id | |
* @param time time | |
* @param mentions set of other tickers including focus ticker itself | |
*/ | |
case class Mention(ticker: Ticker, source: String, sourceId: String, time: DateTime, mentions: Set[Ticker]) |
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
object SVM extends App { | |
import org.apache.spark.mllib.classification.SVMWithSGD | |
import org.apache.spark.mllib.evaluation.BinaryClassificationMetrics | |
import org.apache.spark.mllib.linalg.Vectors | |
import org.apache.spark.mllib.regression.LabeledPoint | |
import org.apache.spark.{SparkContext, SparkConf} | |
import scala.util.Random |
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
# In case you had some strange python installation | |
# NOTE: .pydistutils.cfg seems to be not compatible with brew install python | |
# areas I needed to clean before installation | |
# clean up ~/Library/Python | |
# clean up .local | |
# preconditions: | |
# xcode with command line tools installed | |
xcode-select --install |
OlderNewer