Skip to content

Instantly share code, notes, and snippets.

View coreyoconnor's full-sized avatar

Corey O'Connor coreyoconnor

View GitHub Profile
| => gat scala.collection.mutable.AnyRefMap$ExceptionDefault.apply(AnyRefMap.scala:508)
at scala.collection.mutable.AnyRefMap$ExceptionDefault.apply(AnyRefMap.scala:507)
at scala.collection.mutable.AnyRefMap.apply(AnyRefMap.scala:207)
at scala.tools.nsc.backend.jvm.BCodeSkelBuilder$PlainSkelBuilder$locals$.load(BCodeSkelBuilder.scala:428)
at scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoad(BCodeBodyBuilder.scala:361)
at scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.$anonfun$genLoadArguments$1(BCodeBodyBuilder.scala:926)
at scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoadArguments(BCodeBodyBuilder.scala:926)
at scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genApply(BCodeBodyBuilder.scala:656)
at scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoad(BCodeBodyBuilder.scala:303)
at scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genBlock(
/* An attempt at a direct translation of the `$` mechanism.
*
* In the book `lazy` can annotate the implementation of a method. The result of a `lazy` method is a
* suspension of the result type but the type is still the same. In pseudo code
*
* trait A { val someMethod: Int }
* class Impl extends A { def lazy someImplementation: Int }
*
* The result type in the interface is `Int` but the implementation's result is a suspension of
* type `Int`. I don't see a way to achieve in scala.
module pot() {
translate([0, 0, -0.1]) {
cylinder(d = 84, h = 200);
cylinder(d1 = 104, d2 = 84, h = 15);
}
}
module stand_outside() {
cylinder(d1 = 220, d2 = 85, h = 100);
}
/* The goal is to replicate a rotating cable "tie".
* I have one for reference but I lost where I got the orignal from *shrug*
* units in mm.
*/
height = 40;
gap = 0.25; // printing with a 0.6 mm nozzle. The original seems to be < 0.1
inner_radius= 13;
inner_contact_radius = 4;
2023.01.29 06:55:44 INFO compiling 3 Scala sources to /home/coconnor/Development/glngn/server/jvm/target/scala-2.13/classes ...
Jan 29, 2023 6:55:44 AM org.eclipse.lsp4j.jsonrpc.RemoteEndpoint handleCancellation
WARNING: Unmatched cancel notification for request id 296
2023.01.29 06:55:44 ERROR [E1] server/shared/src/main/scala/glngn/server/node/PreludeInit.scala
not found: type ProviderId
L38: final case class ProviderAvailable(providerId: ProviderId)
^
2023.01.29 06:55:44 ERROR server/shared/src/main/scala/glngn/server/node/PreludeInit.scala: L38 [E1]
2023.01.29 06:55:44 INFO Legend: Ln = line n, Cn = column n, En = error n
2023.01.29 06:55:44 INFO time: compiled glngn-server in 0.48s
ARG REGISTRY=quay.io
ARG OWNER=jupyter
ARG BASE_CONTAINER=$REGISTRY/$OWNER/scipy-notebook
FROM $BASE_CONTAINER
# Fix: https://github.com/koalaman/shellcheck/wiki/SC3014
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
USER root