This file contains hidden or 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
| private val vpc = Vpc("demo-vpc", "172.101.0.0/16") | |
| private val subnet = Subnet("demo-subnet", "172.101.0.0/24", vpc) | |
| private val sshPermission = new IpPermission() | |
| .withIpv4Ranges(new IpRange().withCidrIp("0.0.0.0/32")) | |
| .withIpProtocol("tcp") | |
| .withFromPort(22) | |
| .withToPort(22) |
This file contains hidden or 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
| (ns nonograms.core | |
| (:require [mikera.image.core :as img] | |
| [mikera.image.colours :as col])) | |
| (def foo (img/load-image-resource "100px-Greek_lc_lamda_thin.png")) | |
| (def w (img/width foo)) | |
| (def h (img/height foo)) | |
| (def n 20) |
This file contains hidden or 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
| enablePlugins( | |
| GraalVMNativeImagePlugin, | |
| DockerPlugin | |
| ) | |
| GraalVMNativeImage / containerBuildImage := Some("ghcr.io/graalvm/native-image") | |
| GraalVMNativeImage / graalVMNativeImageOptions += "--static" | |
| GraalVMNativeImage / packageBin := (GraalVMNativeImage / packageBin).map { f => |
This file contains hidden or 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
| package td4 | |
| import weaver.SimpleIOSuite | |
| import cats.syntax.applicative.* | |
| import cats.syntax.flatMap.* | |
| import td4.free.* | |
| import td4.Register.* | |
| object TD4Suite extends SimpleIOSuite: |
This file contains hidden or 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
| -- --------------------------------------------------------------------------- | |
| -- Blinky demo | |
| -- --------------------------------------------------------------------------- | |
| open asm in | |
| def blinky : Asm := do | |
| let cnt0 : FileRegAddr := 0x20#7 | |
| let cnt1 : FileRegAddr := 0x21#7 | |
| let outPin : BitAddr := 0x0#3 |
OlderNewer