Skip to content

Instantly share code, notes, and snippets.

@travisbrown
travisbrown / noncompilation.scala
Last active January 13, 2016 18:00
Testing for compiler errors with untyped macros.
scala> import scala.language.experimental.macros
import scala.language.experimental.macros
scala> import scala.reflect.macros.{ Context, TypecheckException }
import scala.reflect.macros.{Context, TypecheckException}
scala> object NoncompilationTests {
| def compiles(code: _): Boolean = macro compiles_impl
| def compiles_impl(c: Context)(code: c.Tree) = c.literal(
| try {
@2no
2no / .minttyrc-hybrid
Last active August 29, 2015 14:01
Hybrid color settings for the Cygwin mintty terminal. $ cat .minttyrc-hybrid >> ~/.minttyrc
BackgroundColour=29,31,33
ForegroundColour=197,200,198
BoldBlack=40,42,46
Black=55,59,65
BoldRed=165,66,66
Red=204,102,102
BoldGreen=140,148,64
Green=181,189,104
BoldYellow=222,147,95
Yellow=240,198,116