Skip to content

Instantly share code, notes, and snippets.

Avatar

eugene yokota eed3si9n

View GitHub Profile
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 {
@eed3si9n
eed3si9n / talk.md
Created April 23, 2023 22:28
Helix and Scala (ScalaMatsuri 2023 ver)
View talk.md

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
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 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
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)
@eed3si9n
eed3si9n / Foo.java
Created October 18, 2010 18:50
Flip that y axis
View Foo.java
import java.awt.*;
import javax.swing.*;
import java.awt.geom.*;
public class Foo extends JFrame {
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null;
private JPanel jPanel = null;
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 @@
-8
+1.8
diff --git a/build.sbt b/build.sbt
index 2d8cd08..2d0ceec 100644
@eed3si9n
eed3si9n / ci.yml
Last active March 21, 2021 03:54
Preparatory GitHub Actions
View ci.yml
name: CI
on:
pull_request:
push:
jobs:
test:
strategy:
fail-fast: false
matrix:
View khoyo.md

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.