$argon2id$v=19$m=8192,t=2,p=4$ThTfafYKtR24+CF1JiB8pQ$llqK8dVm0Xv4UtHG+KOMsmmpzDsUtsnq
This file contains 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
//> using scala 3.3.1 | |
//> using platform jvm | |
// docs say that QtJambi runs on jvm 8 or later. My system has jvm 21 installed. | |
//> using jvm system | |
// --- QT6 | UI toolkit configuration on linux / archlinux | |
//> using dep io.qtjambi:qtjambi:6.6.1 | |
//> using dep io.qtjambi:qtjambi-native-linux-x64:6.6.1 |
This file contains 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
#!/bin/python3 | |
from timezonefinder import TimezoneFinder | |
from http.server import BaseHTTPRequestHandler,HTTPServer | |
import json | |
tf = TimezoneFinder() | |
class Handlers(BaseHTTPRequestHandler): | |
def do_GET(self): |
This file contains 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
val emptySeq1 = Seq.empty[String] | |
val emptySeq2 = Seq[String]() | |
val someSeq1 = Seq("one") | |
val someSeq2 = Seq("one", "two") | |
// good matches a list with something, no matter the size, works by making sure the strictly empty | |
// is matched FIRST | |
def test1(s: Seq[String]) = s match { | |
case errs @ Seq() => "got empty" |
This file contains 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
case class Node(id: Long, parent: Option[Long]) | |
trait TreeNode[T] { | |
def id(n: T): Long | |
def parentId(n: T): Option[Long] | |
} | |
object TreeNode { | |
def apply[A](implicit A: TreeNode[A]): TreeNode[A] = A |