Skip to content

Instantly share code, notes, and snippets.


eugene yokota eed3si9n

View GitHub Profile
eed3si9n / tree-sitter generate --report-states-for-rule compilation_unit.txt
Last active January 8, 2023 07:17
node_modules/.bin/tree-sitter generate --report-states-for-rule compilation_unit
View tree-sitter generate --report-states-for-rule compilation_unit.txt
$ node_modules/.bin/tree-sitter generate --report-states-for-rule compilation_unit
class_definition 3728
function_definition 2214
ascription_expression 1442
infix_expression 1412
assignment_expression 1412
postfix_expression 1412
match_expression 1400
field_expression 1400
call_expression 1358
View unzip -l
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
View ContextUtil.scala
// 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
import scala.quoted.*
import scala.collection.mutable
// import qctx.reflect.*
eed3si9n / Main.scala
Last active September 9, 2021 16:30 — forked from xuwei-k/Main.scala
View 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)
View gist:19ca9ebfb6d1bffad79348229ac82664
$ git diff
diff --git a/.java-version b/.java-version
index 45a4fb7..6259340 100644
--- a/.java-version
+++ b/.java-version
@@ -1 +1 @@
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.

View Sbt0_13BuildSyntax.scala
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 {
View sbt.log
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 / ci.yml
Last active March 21, 2021 03:54
Preparatory GitHub Actions
View ci.yml
name: CI
fail-fast: false
View 5981.log
[info] [info] Updated file /private/var/folders/hg/2602nfrs2958vnshglyl3srw0000gn/T/sbt_1d00f8ca/project/ 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)
[info] (scala.Predef.identity[sbt.librarymanagement.UpdateReport](($q$macro$1: sbt.librarymanagement.UpdateReport)): sbt.librarymanagement.UpdateReport);