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
| set_option synthInstance.checkSynthOrder false | |
| inductive Vec : Nat -> Type | |
| | mk (n: Nat) (data: List Nat) : Vec n | |
| deriving DecidableEq | |
| instance vecTransport {x y : Nat} {ev: x = y} : Coe (Vec x) (Vec y) where | |
| coe v := cast (congrArg Vec ev) v |
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
| namespace DTLC | |
| /- | |
| dependently typed lambda calculus (similar to STLC but function output type can depend on input term) with a top/wildcard type. | |
| chosen as a nerfed System D (as in "The Essence of Dependent Object Types") for some sanity/vibe check. | |
| -/ | |
| abbrev Index := Type -- AKA symbol, PHOAS carrier | |
| def ByteCode := String |
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
| /opt/homebrew/Cellar/openjdk/23.0.2/libexec/openjdk.jdk/Contents/Home/bin/java -server -Xmx1536M -Dsbt.supershell=false -Djdk.console=java.base -Dgrouping.with.qualified.names.enabled=true -Dseparate.prod.test.sources.enabled=false -Didea.managed=true -Dfile.encoding=UTF-8 "-Didea.installation.dir=/Users/pengcheng/Applications/IntelliJ IDEA Community Edition.app/Contents" -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -jar "/Users/pengcheng/Library/Application Support/JetBrains/IdeaIC2024.3/plugins/Scala/launcher/sbt-launch.jar" early(addPluginSbtFile=\"\"\"/private/var/folders/fy/9k8fbqlx1fb4ndlvfhv5r3ph0000gn/T/idea.sbt\"\"\") idea-shell | |
| [info] welcome to sbt 1.9.0 (Homebrew Java 23.0.2) | |
| [info] loading settings for project effect-zoo-build-build-build from metals.sbt ... | |
| [info] loading project definition from /Users/pengcheng/git-release/effect-zoo/project/project/project | |
| [info] loading settings for project effect-zoo-build-build from metals.sbt ... | |
| [info] loading project definition from /Users/pen |
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
| import java.io.{ByteArrayInputStream, ByteArrayOutputStream, ObjectInputStream, ObjectOutputStream} | |
| import java.util.Base64 | |
| import scala.quoted.* | |
| object AutoLift { | |
| trait SerializingAutoLift[T] extends ToExpr[T] { | |
| def apply(x: T)( | |
| using | |
| Quotes |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| import javax.crypto.Cipher; | |
| val maxKeyLen = Cipher.getMaxAllowedKeyLength("AES") | |
| println(maxKeyLen) |
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
| import dronekit | |
| import pexpect | |
| import sys | |
| import time | |
| from dronekit_sitl import SITL | |
| sys.path.append('/home/peng/.spookystuff/pythonpath') | |
| import os | |
| sitl_args = ['--model', 'quad', '--home=-35.363261,149.165230,584,353'] |
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
| import dronekit | |
| import pexpect | |
| import sys | |
| import time | |
| from dronekit_sitl import SITL | |
| sys.path.append('/home/peng/.spookystuff/pythonpath') | |
| import os | |
| sitl_args = ['--model', 'quad', '--home=-35.363261,149.165230,584,353'] |
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
| :init | |
| The build file 'build.gradle' already exists. Skipping build initialization. | |
| :init SKIPPED | |
| BUILD SUCCESSFUL | |
| Total time: 8.814 secs | |
| This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html | |
| peng@peng-tribbloids:~/git-drone/dronekit-android$ |