Skip to content

Instantly share code, notes, and snippets.

View eed3si9n's full-sized avatar

eugene yokota eed3si9n

View GitHub Profile
Length Date Time Name
--------- ---------- ----- ----
11523 01-01-2010 00:00 lmcoursier/syntax/package.tasty
2594 01-01-2010 00:00 lmcoursier/syntax/package.class
1363 01-01-2010 00:00 lmcoursier/syntax/package$StrictOp.class
1396 01-01-2010 00:00 lmcoursier/syntax/package$PublicationOp.class
2640 01-01-2010 00:00 lmcoursier/syntax/package$ModuleMatchersModule.class
1016 01-01-2010 00:00 lmcoursier/syntax/package$DirectCredentialsOp.class
1470 01-01-2010 00:00 lmcoursier/syntax/package$DirectCredentialsModule.class
1659 01-01-2010 00:00 lmcoursier/syntax/package$DependencyOp.class
// To the extent possible under law, the author(s) have dedicated all copyright and related
// and neighboring rights to this snippet to the public domain worldwide.
// This snippet is distributed without any warranty.
// See http://creativecommons.org/publicdomain/zero/1.0/.
import scala.quoted.*
import scala.collection.mutable
// import qctx.reflect.*
@eed3si9n
eed3si9n / Main.scala
Last active September 9, 2021 16:30 — forked from xuwei-k/Main.scala
object Main {
def head[A](list: List[A]): A = list.head
def x1: List[Int] | List[String] = List(3)
// this conversion is ok. the opposite doesn't work.
def x2: List[Int | String] = x1
def x3 = head(x1)
$ git diff
diff --git a/.java-version b/.java-version
index 45a4fb7..6259340 100644
--- a/.java-version
+++ b/.java-version
@@ -1 +1 @@
-8
+1.8
diff --git a/build.sbt b/build.sbt
index 2d8cd08..2d0ceec 100644

aleeye galeeye phire bhatakato, aleeye galeeye phire bhatakato, Ram.

aachya ghara mein poyo jamaaro, maaya jaal mein khoyo. aachya ghara mein poyo jamaaro. maaya jaal mein khoyo.

oopar vaadee joyo jamaaro, maaya jaal mein khoyo.

package sbt
package internal
package fix
import scalafix.v1._
import scala.meta._
class Sbt0_13BuildSyntax extends SyntacticRule("Sbt0_13BuildSyntax") {
override def fix(implicit doc: SyntacticDocument): Patch = {
doc.tree.collect {
This file has been truncated, but you can view the full file.
2020-11-29T04:25:32.8012589Z ##[section]Starting: Request a runner to run this job
2020-11-29T04:25:33.0329868Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2020-11-29T04:25:33.0329951Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-11-29T04:25:33.0330369Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-11-29T04:25:33.1742434Z ##[section]Finishing: Request a runner to run this job
2020-11-29T04:25:39.8331451Z Current runner version: '2.274.2'
2020-11-29T04:25:39.8360764Z ##[group]Operating System
2020-11-29T04:25:39.8361833Z Ubuntu
2020-11-29T04:25:39.8362296Z 18.04.5
2020-11-29T04:25:39.8362846Z LTS
@eed3si9n
eed3si9n / ci.yml
Last active March 21, 2021 03:54
Preparatory GitHub Actions
name: CI
on:
pull_request:
push:
jobs:
test:
strategy:
fail-fast: false
matrix:
[info] [info] Updated file /private/var/folders/hg/2602nfrs2958vnshglyl3srw0000gn/T/sbt_1d00f8ca/project/build.properties: set sbt.version to 1.4.1-SNAPSHOT
[info] [info] welcome to sbt 1.4.1-SNAPSHOT (AdoptOpenJDK Java 1.8.0_232)
[info] [info] loading settings for project sbt_1d00f8ca-build from plugins.sbt ...
[info] [info] loading project definition from /private/var/folders/hg/2602nfrs2958vnshglyl3srw0000gn/T/sbt_1d00f8ca/project
[info] compiling 1 Scala source to /private/var/folders/hg/2602nfrs2958vnshglyl3srw0000gn/T/sbt_1d00f8ca/project/target/scala-2.12/sbt-1.0/classes ...
TREE: scala.Predef.identity[sbt.librarymanagement.UpdateReport](($q$macro$1: sbt.librarymanagement.UpdateReport))
TREE: (scala.Predef.identity[sbt.librarymanagement.UpdateReport](($q$macro$1: sbt.librarymanagement.UpdateReport)): sbt.librarymanagement.UpdateReport)
TREE: {
[info] (scala.Predef.identity[sbt.librarymanagement.UpdateReport](($q$macro$1: sbt.librarymanagement.UpdateReport)): sbt.librarymanagement.UpdateReport);
[info
sbt:sbtRoot> utilScripted/clean
sbt:sbtRoot> utilScripted/compile
...
sbt:sbtRoot> utilScripted/compile
[debug] Other repositories:
[debug] Default repositories:
[debug] Using inline dependencies specified in Scala.
[debug] not up to date. inChanged = true, force = false
[debug] Updating utilInterface...