- Install bloop
1.0.0-M11
by following the Bloop installation instructions. Then, make sure you start up the bloop server on the background and to generate the configuration files by runningbloopInstall
in your build tool. - Install IntelliJ 2018.2 EAP and then enable the nightly version of the Scala Plugin by opening Preferences | Languages & Frameworks | Scala | Updates tab and selecting the Nightly plugin update channel:
- check for updates and download the Scala plugin Nightly release.
- Reboot IntelliJ. The Scala plugin should now have version 2018.2.277 or higher (check in Preferences | Plugins)
- Open the "Find Action" search box (usual hotkey Shift+Ctrl+A or shift+cmd+A) and search for "bsp". The search box will show the full action name: "Enable experime
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
class LineAggregator extends Actor { | |
var v = "" | |
override def receive = { | |
case Exit => context.stop(self) | |
case Put(line) => v = v + line + "\n" | |
case Get => sender ! v | |
} |
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
class IntegrationSuite extends FunSuite with ShouldMatchers { | |
test("infinit actor") { | |
val actor= ActorSystem("tail").actorOf(Props[MrActor]) | |
Thread.sleep(10000) | |
actor ! Interrupt | |
Thread.sleep(40054) | |
} | |
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
def sleepForTimes(ms: Long, times: Long) = { | |
var n = 0 | |
() => { | |
n+=1 | |
if (n <= times) { | |
Thread.sleep(ms) | |
true | |
} else { | |
false | |
} |
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
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |