Skip to content

Instantly share code, notes, and snippets.

@ayapi
ayapi / refresh-viewport-height-demo.html
Last active July 19, 2022 10:34
minimum example xterm.js refresh-viewport-height
<!doctype html>
<html>
<head>
<title>xterm.js demo</title>
<link rel="stylesheet" href="../src/xterm.css" />
<script src="../src/xterm.js" ></script>
<script src="../addons/fit/fit.js" ></script>
<style>
#term-box {
overflow: hidden;
@ayapi
ayapi / completion.js
Created October 17, 2016 10:43
completion (doesnt work yet)
"use strict";
const chevrotain = require('chevrotain');
const Lexer = chevrotain.Lexer;
const Parser = chevrotain.Parser;
const extendToken = chevrotain.extendToken;
const KEYWORD = extendToken('KEYWORD', Lexer.NA);
const PRIVATE = extendToken('PRIVATE', /Private/i, KEYWORD);
const PUBLIC = extendToken('PUBLIC', /Public/i, KEYWORD);
@ayapi
ayapi / comment.md
Created October 20, 2017 03:41
Promise説明

この関数が呼び出されると、処理が完了するたびにPromiseオブジェクトが返されます。

Promiseオブジェクトが返るのゎ処理が完了してからでゎなくて、すぐに返ります

体感できるょーにするために、execMkdirの非同期処理を仮のものに書き換ぇて、 処理めっちゃ遅ぃゃっをシミュレートしてみます

// promiseTest.js
@ayapi
ayapi / index.md
Created April 27, 2022 10:14
WSLのArchがMicrosoft.NETCore.Appのバージョンエラーで起動できなくなったら
It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '5.0.0' (x64) was not found.
  - The following frameworks were found:
    6.0.2 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

て言ゎれたら

@ayapi
ayapi / README.md
Last active August 30, 2024 12:07
棒読みちゃんを外部PCから呼べるょーにするproxyサーバー

棒読みちゃん用プロキシ

棒読みちゃんゎHTTPサーバー機能がぁり、
外部アプリから喋らせることができるが、
なぜかlocalhostからしか接続できなぃから、
このproxyサーバーを間に噛ます必要がぁる

以下の手順ゎ棒読みちゃんを起動する側のPCでゃってくださぃ

how to install