Skip to content

Commit b081267

Browse files
author
Xoan C. Pardo
committed
Added the "Running the examples in your browser" section to README.md
1 parent 3b5e0b2 commit b081267

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,38 @@ lsgo2013.zip(solutions) foreach { case (f, expected) => // every function is zip
133133
}
134134
```
135135

136+
Running the examples in your browser
137+
------------------------------------
138+
139+
Want to try **scala-lsgo-benchmarks** and you don't have Scala? Run the examples in your browser with [Scastie](https://scastie.scala-lang.org).
140+
141+
Follow these steps:
142+
143+
1. In Build Settings
144+
* Select the version 2.13.8 of Scala.
145+
* Add the`-language:reflectiveCalls` property and **scala-lsgo-benchmarks** library dependencies into the Extra Sbt Configuration field.
146+
147+
![](screenshots/scastie01.png?raw=true)
148+
149+
The content of the Extra Sbt Configuration field after editing should be:
150+
151+
```scala
152+
scalacOptions ++= Seq(
153+
"-deprecation",
154+
"-encoding", "UTF-8",
155+
"-feature",
156+
"-unchecked",
157+
"-language:reflectiveCalls"
158+
)
159+
160+
libraryDependencies += "org.apache.commons" % "commons-math3" % "3.3" // this is optional
161+
libraryDependencies += "io.github.xoanpardo" %% "scala-lsgo-benchmarks" % "0.1.1"
162+
```
163+
164+
2. In the Editor, copy the example you want to run and click on the Save button
165+
166+
![](screenshots/scastie02.png?raw=true)
167+
136168
Additional utilities
137169
--------------------
138170

screenshots/scastie01.png

111 KB
Loading

screenshots/scastie02.png

219 KB
Loading

0 commit comments

Comments
 (0)