def sendInput(input: html.Input, socket: WebSocket) = {
input.onkeyup = (e: Event) => socket.send(input.value)
}
def echoWebSocket(input: html.Input, pre: html.Pre) = {
val echo = "ws://echo.websocket.events"
This file contains hidden or 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.2" | |
| //> using lib "org.http4s::http4s-dsl:1.0.0-M29" | |
| //> using lib "org.http4s::http4s-ember-server:1.0.0-M29" | |
| //> using lib "org.http4s::http4s-ember-client:1.0.0-M29" | |
| //> using lib "org.http4s::http4s-circe:1.0.0-M29" | |
| //> using lib "ch.qos.logback:logback-classic:1.2.6" | |
| package zetashift.todo | |
| import cats.effect._ |
This file contains hidden or 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
| /* eslint-disable import/no-extraneous-dependencies */ | |
| import { | |
| NodeProjectOptions, | |
| TypeScriptModuleResolution, | |
| } from "projen/lib/javascript"; | |
| import { | |
| TypeScriptAppProject, | |
| TypeScriptProjectOptions, | |
| } from "projen/lib/typescript"; | |
| import { deepMerge } from "projen/lib/util"; |
This file contains hidden or 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
| ;; Primitives | |
| (comment) @comment | |
| (nat) @constant.numeric | |
| (unit) @constant.builtin | |
| (literal_char) @constant.character | |
| (literal_text) @string | |
| (literal_boolean) @constant.builtin.boolean | |
| ;; Keywords | |
| [ |
This file contains hidden or 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
| ;;; unison-ts-mode.el --- Major mode for Unison with tree-sitter support -*- lexical-binding: t; -*- | |
| (require 'treesit) | |
| (require 'rx) | |
| (declare-function treesit-parser-create "treesit.c") | |
| (declare-function treesit-node-type "treesit.c") | |
| (declare-function treesit-node-text "treesit.c") | |
| (declare-function treesit-node-child-by-field-name "treesit.c") | |
| (declare-function treesit-parent-while "treesit.c") |
OlderNewer