This file contains hidden or 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 settings for project genrs-build from plugins.sbt ... | |
| [info] Loading project definition from /d/Code/genrs/project | |
| [info] Loading settings for project genrs from build.sbt ... | |
| [info] Set current project to genrs (in build file:/d/Code/genrs/) | |
| [info] Compiling 1 Scala source to /d/Code/genrs/target/scala-0.22/test-classes ... | |
| exception while typing x.isInstanceOf[[35mgenrs.ResourceWrapper[String][0m] of class class dotty.tools.dotc.ast.Trees$TypeApply # 11896 | |
| exception while typing { | |
| x.isInstanceOf[[35mgenrs.ResourceWrapper[String][0m] | |
| } of class class dotty.tools.dotc.ast.Trees$Inlined # 11897 | |
| exception while typing org.scalactic.Bool.isInstanceOfMacroBool( |
This file contains hidden or 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
| package genrs.test | |
| import genrs._ | |
| import genrs.Resource.ResourceOps | |
| import org.scalatest.funsuite.AnyFunSuite | |
| class ResourceSuite extends AnyFunSuite | |
| val (r0, r1, r2, r3) = ("Hello World", -12, 3.5638, false) |
This file contains hidden or 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
| scalaVersion := "0.22.0-RC1" | |
| libraryDependencies ++= Seq( | |
| "com.lihaoyi" %% "upickle" % "0.9.5", | |
| ).map(_.withDottyCompat(scalaVersion.value)) | |
| libraryDependencies ++= Seq( | |
| "org.scalactic" %% "scalactic" % "3.1.1", | |
| "org.scalatest" %% "scalatest" % "3.1.1" % "test" | |
| ) |
This file contains hidden or 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
| package scary | |
| import scala.collection.mutable.ArrayBuffer | |
| package object base64 { | |
| class MalformedStringException extends Exception("Base64: Malformed String") | |
| val table = (('A' to 'Z') ++ ('a' to 'z') ++ ('0' to '9')).toArray :+ '+' :+ '/' |
This file contains hidden or 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
| #!/bin/sh | |
| curl -s -o build-number.tmp http://jenkins.seitzal.eu/job/scatta/lastSuccessfulBuild/artifact/build_number | |
| build_number=`cat build-number.tmp` | |
| echo "Installing Scatta, nightly build #$build_number\n" | |
| rm -rf backend frontend cli scatta scatta_cli | |
| mkdir backend | |
| mkdir cli | |
| curl -o backend/scatta.jar "http://jenkins.seitzal.eu/job/scatta/lastSuccessfulBuild/artifact/scatta_backend_nightly_$build_number-integrated.jar" | |
| curl -o cli/cli.jar "http://jenkins.seitzal.eu/job/scatta/lastSuccessfulBuild/artifact/scatta_cli_nightly_$build_number-integrated.jar" | |
| curl -o frontend.tmp.jar "http://jenkins.seitzal.eu/job/scatta/lastSuccessfulBuild/artifact/scatta_frontend_nightly_$build_number.jar" |
This file contains hidden or 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
| package recfun | |
| import scala.annotation.tailrec | |
| object Main { | |
| def main(args: Array[String]) { | |
| println("Pascal's Triangle") | |
| for (row <- 0 to 10) { | |
| for (col <- 0 to row) | |
| print(pascal(col, row) + " ") |