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] |
This file contains 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
/*** | |
libraryDependencies += "org.apache.maven" % "maven-model-builder" % "3.3.9" | |
scalaVersion := "2.11.8" | |
*/ | |
import org.apache.maven.model._ | |
import resolution._ | |
import io._ | |
import building._ | |
import java.io.File |
This file contains 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
nix-env -i pngquant | |
nix-env -i protobuf | |
nix-env -i optipng | |
nix-env -i yarn | |
set this in build.sbt: | |
PB.runProtoc := { args => Process("protoc", args).! }, | |
pushd metadoc-js/target/scala-2.12/scalajs-bundler/main/node_modules/pngquant-bin/vendor/ | |
rm pngquant |
This file contains 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 XMonad | |
import qualified XMonad as XMonad | |
import XMonad.Hooks.SetWMName | |
import qualified XMonad.StackSet as W | |
import qualified Data.Map as Map | |
import System.Exit | |
dvorak conf@(XConfig {XMonad.modMask = modm}) = Map.fromList $ | |
keyBase conf ++ | |
[ |
This file contains 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
// rec and pat mat | |
last(List(1, 2, 3)) == 3 | |
def last(xs: List[Int]): Int = { | |
xs match { | |
case h :: Nil => h // List(1) | |
case h :: t => last(t) // List(1, ...) | |
case Nil => throw new NoSuchElementException | |
} | |
} |
This file contains 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
[0m[[0minfo[0m] [0mLoading project definition from /home/gui/dotty-example-project/project[0m | |
[0m[[0minfo[0m] [0mSet current project to dotty-example-project (in build file:/home/gui/dotty-example-project/)[0m | |
[0m[[0minfo[0m] [0mCompiling 1 Scala source to /home/gui/dotty-example-project/target/scala-2.11/classes...[0m | |
[0m[[0minfo[0m] [0m'dotty-bridge' not yet compiled for Scala 0.1-SNAPSHOT. Compiling...[0m | |
exception while transforming xsbt.DelegatingReporter of class class dotty.tools.dotc.ast.Trees$Ident # 486 | |
exception while transforming xsbt.DelegatingReporter.apply of class class dotty.tools.dotc.ast.Trees$Select # 8498 | |
exception while transforming xsbt.DelegatingReporter.apply(delegate) of class class dotty.tools.dotc.ast.Trees$Apply # 8499 | |
exception while transforming new dotty.tools.dotc.core.Contexts.ContextBase().initialCtx().fresh().setSbtCallback(callback).setReporter( | |
xsbt.DelegatingReporter.apply(delegate) | |
) of class class dotty.tools.dotc.ast.Trees$Apply # 8500 |
This file contains 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
[info] Loading global plugins from /home/gui/.sbt/0.13/plugins | |
[info] Loading project definition from /home/gui/sbt-dotty/example/project | |
[info] Updating example-build | |
[info] Resolved example-build dependencies | |
[info] Fetching artifacts of example-build | |
[info] Fetched artifacts of example-build | |
[info] Set current project to testplugin (in build file:/home/gui/sbt-dotty/example/) | |
[debug] > compile | |
[debug] Evaluating tasks: compile:compile | |
[debug] Running task... Cancel: Null, check cycles: false, forcegc: true |
- https://github.com/adamw/quicklens
- com.softwaremill.quicklens quicklens_sjs0.6_2.11
- 1.4.2
- 1.3.1
- 1.4.0
- 1.4.5
- 1.4.6
- 1.4.1
- 1.4.3
- com.softwaremill.quicklens quicklens_sjs0.6_2.11
- 1.4.4
This file contains 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
case class Paginator(previous: Option[Int], selections: List[Int], current: Int, next: Option[Int]) | |
def pagination(current: Int, total: Int, window: Int = 10): Paginator = { | |
val prev = | |
if(current == 1) None | |
else Some(current -1) | |
val next = | |
if(current == total) None | |
else Some(current + 1) |