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 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") |
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
;; 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 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 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 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
import { component$, useStore, $} from '@builder.io/qwik'; | |
export const App = component$(() => { | |
return <TodoList></TodoList>; | |
}); | |
interface ITodo { | |
title: string; | |
description: string; |
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
## User interface | |
"ui.selection" = { bg = "waveBlue1" } | |
"ui.background" = { fg = "fujiWhite", bg = "sumiInk1" } | |
"ui.linenr" = { fg = "sumiInk4" } | |
"ui.statusline" = { fg = "oldWhite", bg = "sumiInk0" } | |
"ui.statusline.inactive" = { fg = "fujiGray", bg = "sumiInk0" } | |
"ui.statusline.normal" = { fg = "sumiInk0", bg = "crystalBlue", modifiers = ["bold"] } | |
"ui.statusline.insert" = { fg = "sumiInk0", bg = "autumnGreen" } |
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.1" | |
//> using lib "org.http4s::http4s-dsl:0.23.12" | |
//> using lib "org.http4s::http4s-ember-client:0.23.16" | |
//> using lib "org.http4s::http4s-circe:0.23.16" | |
//> using lib "io.circe::circe-generic:0.14.3" | |
//> using lib "io.circe::circe-literal:0.14.3" | |
//> using lib "io.chrisdavenport::crossplatformioapp:0.1.0" | |
//> using platform "scala-native" | |
import io.chrisdavenport.crossplatformioapp.CrossPlatformIOApp |
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.1" | |
//> using lib "org.http4s::http4s-dsl:0.23.12" | |
//> using lib "org.http4s::http4s-ember-server:0.23.12" | |
//> using lib "org.http4s::http4s-ember-client:0.23.12" | |
import cats.effect._ | |
import org.http4s._ | |
import org.http4s.dsl.io._ | |
import org.http4s.ember.server.EmberServerBuilder | |
import org.http4s.server.Router |
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
// Place your key bindings in this file to override the defaults | |
[ | |
{ | |
"key": "space", | |
"command": "dance.openMenu", | |
"args": { | |
"input": "leader" | |
}, | |
"when": "!inputFocus || editorTextFocus && dance.mode == 'normal'" | |
}, |
NewerOlder