Skip to content

Instantly share code, notes, and snippets.

/**
* This file is licensed under MIT license, not AGPL.
*
* Copyright (c) 2023 Syusui Moyatani
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
// This code is Public domain (Creative Commons Zero CC0-1.0)
// https://creativecommons.org/publicdomain/zero/1.0/deed.ja
// from nostr-tools (Public domains)
export type NostrEvent = {
id?: string;
kind: number;
tags: string[][];
pubkey: string;
content: string;
@syusui-s
syusui-s / javascript_yield_performance.md
Last active September 6, 2022 16:20
JavaScriptにおける各種yield方式のパフォーマンス計測
title author created_at updated_at license
各種yield方式のパフォーマンス計測
syusui_s
2022-07-25
2022-09-07
CC-BY-SA 3.0

各種yield方式のパフォーマンス計測

@syusui-s
syusui-s / Fujitsu_BarCodeReader.ts
Last active May 28, 2022 08:27
富士通(FUJITSU)のバーコードリーダー BCR-213の専用モードをWebブラウザ上で検出して使えるようにするHooks的なやつ
/*
* To the extent possible under law, Shusui Moyatani has waived all copyright and related or neighboring rights to this file.
* https://creativecommons.org/publicdomain/zero/1.0/deed.ja
*/
import { createSignal, onMount, onCleanup } from 'solid-js';
type ReadResult = {
dataType: DataType;
options: Options;
// ==UserScript==
// @name VideoPlaybackRate.user.js
// @author Shusui Moyatani
// @description Change speed of video
// @namespace https://gist.github.com/syusui-s/VideoPlaybackRate.user.js
// @version 3.0.2
// @match http*://*/*
// @grant none
// @run-at context-menu
// @downloadURL https://gist.github.com/syusui-s/5db8676b21db522cedbc1028c75dddb6/raw/VideoPlaybackRate.user.js
@syusui-s
syusui-s / -shinycolors_always_unmute_README.md
Last active January 3, 2025 03:47
『シャニマス音流す君』は、シャニマスが非アクティブ状態(バックグラウンド)でも音を流してくれるツールです。

シャニマス音流す君

インストール方法

  1. 次のいずれかの拡張機能をインストールしてください

VTuberゴシップ排除用 uBlacklist設定

  1. uBlacklistをインストール
  2. 設定画面を開く
  3. 一番下の「ブラックリストを購読する」の「購読を追加する」をクリック
  4. 下記の通りに設定する
    • 名前: VTuber Gossip Blacklist
  • URL: https://gist.githubusercontent.com/syusui-s/9449f216f373db2187cbfd496d1aceca/raw/vtuber_gossip_ublacklist.txt
@syusui-s
syusui-s / quickrun_fsharp_fsx_concurrent_process.vim
Last active February 24, 2021 12:00
vim-quickrun runner plugin for F# Script (.fsx) : run your .fsx more quickly
let g:quickrun_config.fsharp = {
\ 'type': 'fsharp/concurrent_process/dotnet_fsi',
\ }
let g:quickrun_config["fsharp/concurrent_process/dotnet_fsi"] = {
\ 'runner': 'concurrent_process',
\ 'command': 'dotnet',
\ 'cmdopt': 'fsi',
\ 'runner/concurrent_process/load': '#load "%S";;',
\ 'runner/concurrent_process/prompt': '> $',