Claude DesktopのOption+Space(クイックエントリー)を使用する際、日本語IMEの変換確定のEnterキーで誤ってメッセージが送信されてしまう問題を解決するKarabiner-Elementsの設定です。
{
"title": "Claude Desktop IME Fix for Japanese Input",
"rules": [
ts-blank-space
tags: TypeScript, type erasure, type stripping
As part of my work on the JavaScript Tooling team at Bloomberg I have implemented an experimental (not yet used in production) package to transform TypeScript into JavaScript using a somewhat novel approach.
This is a description of what I learned from implementing the idea. The source code will be open sourced soon - it just needs some regular IP approval.
export type BaseEnvRecord = Record< | |
string, | |
{ | |
value: string | undefined; | |
required: boolean; | |
defaultValue?: string; | |
} | |
>; | |
export type ReturnTypeOfCreateEnv<T extends BaseEnvRecord> = { | |
// If the value is required, it should be a string, otherwise it should be a string or undefined |
Ref なぜ僕は公式ドキュメントを読むのが苦手なのか #初心者 - Qiita
次のようなセクションがあった場合、何を読むかというのはその目的によって異なるという印象。
// ==UserScript== | |
// @name Bluesky: auto refresh | |
// @namespace https://efcl.info | |
// @match https://bsky.app/* | |
// @grant none | |
// @version 1.0 | |
// @author azu | |
// @description Auto Refresh when notifications is shown | |
// ==/UserScript== | |
const origSetInterval = window.setInterval; |
It is a script to convert a TypeScript library project to a Node.js Dual CommonJS/ES module packages.
This script aim to convert following project:
id: 2022.08.23-ubuntu-18.04 | |
title: "CI: update ubuntu-18.04 to ubuntu-latest" | |
adapter: | |
type: github | |
search_type: code | |
search_query: org:{{user}} path:/.github/workflows | |
hooks: | |
should_migrate: | |
- ls .github/workflows | |
- find .github/workflows -type f -name "*.y*ml" -exec grep "ubuntu-18.04" {} +; |
Almost browsers prevent to XSS that is using javascript:
protocol.
<a href=javascript:alert(location.origin) traget=_blank>XSS</a>
Demo: https://nuvjcp.csb.app/