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
  • 04:24 (UTC -05:00)
View GitHub Profile
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot.loader.grub = {
enable = true;
import sbt._
import Keys._
import KeyRanks.DTask
import xsbti.{Reporter, Problem, Position, Severity}
object CustomReporter {
private lazy val compilerReporter = TaskKey[xsbti.Reporter](
"compilerReporter",
"Experimental hook to listen (or send) compilation failure messages.",
DTask
@MasseGuillaume
MasseGuillaume / cli.scala
Created June 21, 2018 19:12
Mima 2.12.6 vs 2.13.0-M4
package com.typesafe.tools.mima.cli
import com.typesafe.tools.mima.lib.MiMaLib
import com.typesafe.tools.mima.core.Config
import java.nio.file._
object MiMaCli {
Byte
@deprecated("Adding a number and a String is deprecated. Convert the number to a String with `toString` first to call +", "2.13.0")
def +(x: String): String
@deprecated("shifting a value by a `Long` argument is deprecated (except when the value is a `Long`).\nCall `toInt` on the argument to maintain the current behavior and avoid the deprecation warning.", "2.12.7")
def <<(x: Long): Int
@deprecated("shifting a value by a `Long` argument is deprecated (except when the value is a `Long`).\nCall `toInt` on the argument to maintain the current behavior and avoid the deprecation warning.", "2.12.7")
def >>>(x: Long): Int
2186 https://github.com/milessabin/macro-compat/commit/b1bbe40105a649abf35511fe8e7de4c0419192f7
1444 https://github.com/scala/scala-parser-combinators/pull/148
617 https://github.com/milessabin/shapeless/tree/shapeless-2.3.3-scala-2.13.0-M4
- (implicit itl: IsTraversableLike[Repr], ev: AdditiveCollection[Repr]): SizedOps[itl.A, Repr, L] =
+ (implicit itl: IsIterableLike[Repr], ev: AdditiveCollection[Repr]): SizedOps[itl.A, Repr, L] =
- private implicit def conv(repr: Repr): GenTraversableLike[A0, Repr] = itl.conversion(repr)
+ private implicit def conv(repr: Repr): IterableOps[A0, Iterable, Repr] = itl.conversion(repr)
milessabin/macro-compat/macro-compat 2186
scala/scala-parser-combinators/scala-parser-combinators 1444
mpilquist/simulacrum/simulacrum 1268
typelevel/machinist/machinist 1251
scala/scala-xml/scala-xml 855
typelevel/cats/cats-core 756
milessabin/shapeless/shapeless 617
scala/scala-java8-compat/scala-java8-compat 512
lightbend/ssl-config/ssl-config-core 399
akka/akka/akka-actor 355
// see https://github.com/scalacenter/scaladex/blob/master/CONTRIBUTING.md
// import $ivy.`io.verizon.quiver::core:7.0.19`
import quiver._
import ch.epfl.scala.index.model.{Project, Release}
import ch.epfl.scala.index.model.release.ScalaDependency
import ch.epfl.scala.index.data.{DataPaths, LocalPomRepository}
import ch.epfl.scala.index.data.project.ProjectConvert
import ch.epfl.scala.index.data.github.GithubDownload
@MasseGuillaume
MasseGuillaume / output.scala
Last active June 5, 2018 10:22
scala.meta + Ammonite
val tree = "a.b().c".parse[Term].get
pretty(tree)
Term.Select(
Term.Apply(
Term.Select(
Term.Name("a"),
Term.Name("b")
),
import scala.collection.immutable.BitSet
def fromRange(xs: List[(Int, Int)]): BitSet = {
val range = BitSet.newBuilder
xs.foreach {
case (start, end) =>
range ++= BitSet((start to end): _*)
}
range.result
}
@MasseGuillaume
MasseGuillaume / scala.md
Last active October 9, 2017 14:41
Scala Names
Proposed Name Comment Author
Escalators [Will Sargent]
Scalars (pronounced "scholars") [John Page]
Scalabradoodle [Heather Miller]
Scalabrador [Heather Miller]
Scalobsters [Someone]
Scally (like Sc-ally) [Heather Miller]