Skip to content

Instantly share code, notes, and snippets.

View MasseGuillaume's full-sized avatar

Guillaume Massé (马赛卫) MasseGuillaume

  • narrative.io
  • Montréal, Québec, Canada
  • 20:46 (UTC -04:00)
View GitHub Profile
import com.scalakata._
import ch.epfl.scala.index._
import data._
import bintray._
import cleanup._
import scala.util.Success
import com.scalakata._
trait B
@instrument class Playground extends B {
1
}
exception: scala.MatchError: List(class Playground extends B {
def <init>() = {
super.<init>();
()
class ApplicativeSection extends Section("applicative") {
import cats._
import cats.std.all._
md"""
`Applicative` extends `Apply` by adding a single method, `pure`:
```
@MasseGuillaume
MasseGuillaume / semver.scala
Last active May 5, 2016 16:37
Semantic Version (more or less ;-)
import scala.util._
import fastparse.all._
import fastparse.core.Parsed
sealed trait PreRelease
case class Milestone(digit: Long) extends PreRelease
case class ReleaseCandidate(digit: Long) extends PreRelease
case class OtherPreRelease(value: String) extends PreRelease
@MasseGuillaume
MasseGuillaume / second.scala
Created May 2, 2016 20:40
sbt second segment
// sbt definition of version
// https://github.com/sbt/sbt/blob/0.13/ivy/src/main/scala/sbt/VersionNumber.scala#L3
case class SecondSegment(
numbers: List[Long],
tags: List[String],
extras: List[String]
) extends Version
// https://github.com/sbt/sbt/blob/0.13/ivy/src/main/scala/sbt/VersionNumber.scala#L40
private val SecondSegmentParser = {
import com.scalakata._
@instrument class Playground {
import ch.epfl.scala.index._
import cleanup._
import maven._
import scala.util.Success
def filtered(m: MavenModel) = {
@MasseGuillaume
MasseGuillaume / spark.md
Last active April 28, 2016 21:05
spark packages
@MasseGuillaume
MasseGuillaume / scalajs.md
Last active April 28, 2016 20:13
more detailed
  • https://github.com/milessabin/export-hook
    • org.typelevel export-hook_sjs0.6_2.11 1.0.1
  • https://github.com/chandu0101/scalajs-react-native
    • com.github.chandu0101.sri relay_sjs0.6_2.11 0.3.0
    • com.github.chandu0101.sri universal_sjs0.6_2.11 0.2.0
    • com.github.chandu0101.scalajs-react-native core_sjs0.6_2.11 0.0.1
    • com.github.chandu0101.sri mobile_sjs0.6_2.11 0.3.0
    • com.github.chandu0101.sri core_sjs0.6_2.11 0.3.0
    • com.github.chandu0101.sri mobile_sjs0.6_2.11 0.1.0
  • com.github.chandu0101.sri web_sjs0.6_2.11 0.3.0
"biz.enef" %% "slogging-slf4j" % "0.3"
"biz.enef" %% "surf-akka" % "0.0.1"
"bound" %% "bound-core" % "1.3.0"
"bound" %% "bound-f0-binding" % "1.3.0"
"bound" %% "bound-scalacheck-binding" % "1.3.0"
"com.elderresearch" %% "monadic-jfx" % "0.1.0"
"com.geteit" %% "geteit-app" % "0.1"
"com.geteit" %% "geteit-utils" % "0.3"
"com.github.gearzero" %% "slick-threeten-mapper" % "0.1.0"
"com.github.imapi" %% "spark-sqs-receiver" % "1.0.1"