Skip to content

Instantly share code, notes, and snippets.

View jastice's full-sized avatar
🤗

Justin Kaeser jastice

🤗
View GitHub Profile
@jastice
jastice / integrations-bsp-intellij-bloop.md
Last active June 28, 2019 11:48 — forked from jvican/integrations-bsp-intellij-bloop.md
Instructions to try the BSP IntelliJ-Bloop integration out.

Installation instructions

  1. 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 running bloopInstall in your build tool.
  2. 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: intellij-eap
  3. check for updates and download the Scala plugin Nightly release.
  4. Reboot IntelliJ. The Scala plugin should now have version 2018.2.277 or higher (check in Preferences | Plugins)
  5. 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
# ---------------------------------------------------------------------------
#
# 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
def sleepForTimes(ms: Long, times: Long) = {
var n = 0
() => {
n+=1
if (n <= times) {
Thread.sleep(ms)
true
} else {
false
}
class IntegrationSuite extends FunSuite with ShouldMatchers {
test("infinit actor") {
val actor= ActorSystem("tail").actorOf(Props[MrActor])
Thread.sleep(10000)
actor ! Interrupt
Thread.sleep(40054)
}
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
}