Skip to content

Instantly share code, notes, and snippets.

View eed3si9n's full-sized avatar

eugene yokota eed3si9n

View GitHub Profile
@eed3si9n
eed3si9n / stdout.log
Created December 7, 2024 06:56
sbtn unix socket
$ socat -v UNIX-LISTEN:$HOME/.sbt/1.0/server/aaaaaa/proxy.sock,fork UNIX-CONNECT:$HOME/.sbt/1.0/server/aaaaaa/sock
> 2024/12/07 01:30:49.000005239 length=181 from=0 to=180
Content-Length: 158\r
\r
{ "jsonrpc": "2.0", "id": "cb0ffdd8-be63-42cb-b853-4fce15a5c9f5", "method": "initialize", "params": { "initializationOptions": { "skipAnalysis" : true } } }\r
> 2024/12/07 01:30:49.000005821 length=148 from=181 to=328
Content-Length: 125\r
\r
{ "jsonrpc": "2.0", "id": "44b67b11-1551-424d-9b5f-1454112b769c", "method": "sbt/attach", "params": {"interactive": true} }\r
< 2024/12/07 01:30:49.000028766 length=338 from=0 to=337
$ jstack 28453
2023-10-10 16:29:05
Full thread dump OpenJDK 64-Bit Server VM (25.362-b08 mixed mode):
"Attach Listener" #173 daemon prio=9 os_prio=31 tid=0x0000000144b34000 nid=0xb607 waiting on condition [0x0000000000000000]
java.lang.Thread.State: RUNNABLE
"Thread-3" #172 daemon prio=5 os_prio=31 tid=0x0000000132aa0800 nid=0x11707 waiting on condition [0x00000002876b2000]
java.lang.Thread.State: TIMED_WAITING (sleeping)
at java.lang.Thread.sleep(Native Method)
package sbt.util
import java.io.File
import java.nio.file.Path
import sjsonnew.{ Builder, JsonWriter }
import StringLongs.StringLong
trait PathHashWriters:
given stringLongLike[A](using conv: Conversion[A, StringLong]): HashWriter[A] with
def write[J](obj: A, builder: Builder[J]): Unit =
@eed3si9n
eed3si9n / LICENSE1.txt
Last active July 28, 2023 14:03
IBM International Program License Agreement
IMPORTANT: READ CAREFULLY
Two license agreements are presented below.
1. IBM International License Agreement for Evaluation of Programs
2. IBM International Program License Agreement
If Licensee is obtaining the Program for purposes of productive use (other than evaluation, testing, trial "try or buy," or demonstration): By clicking on the "Accept" button below, Licensee accepts the IBM International Program License Agreement, without modification.
@eed3si9n
eed3si9n / talk.md
Created April 23, 2023 22:28
Helix and Scala (ScalaMatsuri 2023 ver)

Helix and Scala

Eugene Yokota (@eed3si9n)

@eed3si9n
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
$ 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
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)