Skip to content

Instantly share code, notes, and snippets.

building Nix...
building the system configuration...
error: the string '22.05' is not allowed to refer to a store path (such as '/nix/store/0qma2xzkmp0x3j6gb0936fimvqsp297g-nixpkgs-src')
at /nix/store/363n9qpp2aibismayc93ack9kjbs1da7-sources/nixpkgs/lib/strings.nix:562:26:
561| */
562| versionOlder = v1: v2: compareVersions v2 v1 == 1;
| ^
563|
package io.delta_t
import cats.implicits._
import cats.effect._
import io.chrisdavenport.log4cats.Logger
import monix.eval.TaskLike
import monix.execution.Ack.Continue
import monix.execution.{Ack, Cancelable}
import monix.reactive.OverflowStrategy.Unbounded
import monix.reactive._
07/27/1978
When I was 18... 18 years old, I saw for the first time in my life... I saw an image of clarity. I saw a comic strip... a three panel comic strip that, though simple as it seemed, changed me... changed my being, changed who I am... Made me who I am...
Enlightened me...
The strip, Garfield, the comic strip was new... no more than maybe a month and a half since inception, since... since coming into existence... and there it was before me in print, I saw it... a comic strip... What was it called?
@busti
busti / issue.md
Created June 8, 2020 15:49
Complete WebSocketConnection Observable when the WebSocket is closed

The Websocket should respect the Observable behavior. It should...

  • cancel the Message Observable when the resource is cancelled.
  • cancel the Message Observable after the Close event is receieved.
  • return Stop in the Observer when the resource is cancelled.
  • return Stop in the Observer after the Close event is receieved.
import cats.implicits._
import cats.effect._
import io.chrisdavenport.log4cats.Logger
import monix.eval.TaskLike
import monix.execution.Ack.Continue
import monix.execution.{Ack, Cancelable}
import monix.reactive.OverflowStrategy.Unbounded
import monix.reactive._
import mycelium.client.raw.{ReconnectingWebSocket, ReconnectingWebsocketOptions}
import org.scalajs.dom._
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ADN CSS3D Demo</title>
<style>
body {
background-color: #ffffff;
margin: 0;
overflow: hidden;
version = "2.5.2"
style = IntelliJ
maxColumn = 120
docstrings = ScalaDoc
project.git = true
project.includeFilters = [
".*\\.scala$"
".*\\.sbt$"
".*\\.sc$"
]
@busti
busti / the_heavy_is_dead.cfg
Created November 4, 2019 22:39
The Heavy is Dead
alias "thid_cycle" "thid_cycle_0"
alias "thid_cycle_0" "alias thid_cycle thid_cycle_1; say Heavy: Ya-da-da-da-da-da- It is good day to be not dead!"
alias "thid_cycle_1" "alias thid_cycle thid_cycle_2; say Engineer: POW! You are dead!"
alias "thid_cycle_2" "alias thid_cycle thid_cycle_3; say Heavy: I am dead!"
alias "thid_cycle_3" "alias thid_cycle thid_cycle_4; say Engineer: Chuckling, while spy is doing the conga towards the scene (The Engineer says aw, shucks” as the Spy gets close.)"
alias "thid_cycle_4" "alias thid_cycle thid_cycle_5; say Spy: Oh! The Heavy is dead!"
alias "thid_cycle_5" "alias thid_cycle thid_cycle_6; say Heavy: Yes (Sandwich). I am dead!"
alias "thid_cycle_6" "alias thid_cycle thid_cycle_7; say Spy: Why is the Heavy dead?!"
alias "thid_cycle_7" "alias thid_cycle thid_cycle_8; say Engineer: I dunno."
alias "thid_cycle_8" "alias thid_cycle thid_cycle_9; say Heavy: I think it was-"
import cats.effect._
import monix.eval.TaskLike
import monix.execution.Ack.Continue
import monix.execution.{Ack, Cancelable}
import monix.reactive.OverflowStrategy.Unbounded
import monix.reactive._
import mycelium.client.raw.{ReconnectingWebSocket, ReconnectingWebsocketOptions}
import org.scalajs.dom._
import scala.concurrent.Future
@busti
busti / build.sbt
Created May 18, 2019 15:24
Build sbt example for sbt-revolver and sbt-web
lazy val server = project
.settings(commonSettings)
.settings(
scalacOptions ++= Seq("-Ypartial-unification"),
scalaJSProjects := Seq(client),
pipelineStages in Assets := Seq(scalaJSPipeline),
compile in Compile := ((compile in Compile) dependsOn scalaJSPipeline).value,
WebKeys.packagePrefix in Assets := "public/",
managedClasspath in Runtime += (packageBin in Assets).value,
)