Skip to content

Instantly share code, notes, and snippets.

Avatar

Guillaume Massé MasseGuillaume

View GitHub Profile
View conf.nix
{ config, pkgs, ... }:
{
imports =
[
./hardware-configuration.nix
];
boot.loader.grub = {
enable = true;
View woot.scala
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 Jun 21, 2018
Mima 2.12.6 vs 2.13.0-M4
View cli.scala
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 {
View migrations.scala
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
View migrations.txt
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)
View list.txt
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
View graph.scala
// 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 Jun 5, 2018
scala.meta + Ammonite
View output.scala
val tree = "a.b().c".parse[Term].get
pretty(tree)
Term.Select(
Term.Apply(
Term.Select(
Term.Name("a"),
Term.Name("b")
),
View fromRange2.scala
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
}
View scala.md
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]