Skip to content

Instantly share code, notes, and snippets.

View su8ru's full-sized avatar

subaru su8ru

View GitHub Profile
@su8ru
su8ru / settings.json
Created October 30, 2018 16:13
Visual Studio Code Settings
{
"window.title": "${dirty}${activeEditorMedium}${separator}${rootName}${separator}${appName}",
"editor.fontFamily": "Cica",
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"terminal.integrated.shellArgs.windows": ["/K", "C:\\software\\cmder\\vscode.bat"],
"terminal.integrated.cursorStyle": "line",
"files.exclude": {
"**/.git": false,
"**/.vs": true,
@su8ru
su8ru / ヴァネ顔辞書.txt
Created August 17, 2019 03:46
@Vane11ope の顔文字辞書
ゔぁね (๑•ૅㅁ•๑) 顔文字
ゔぁね (๑>◡<๑) 顔文字
ゔぁね ♪(๑ᴖ◡ᴖ๑)♪ 顔文字
ゔぁね ٩(๑❛ᴗ❛๑)۶ 顔文字
@su8ru
su8ru / ナイセン顔文字辞書.txt
Created August 17, 2019 03:51
@itallinc の顔文字辞書
うおおおおおあああ \( 'ω')/ウオオオオオアアアーーーッ! 顔文字
ちんっ ( ^o^)Г☎ チンッ 顔文字
\[\C\h:\m:\s\]\n\[\C'\y/\M/\D \A\]

Keybase proof

I hereby claim:

  • I am su8ru on github.
  • I am su8ru (https://keybase.io/su8ru) on keybase.
  • I have a public key whose fingerprint is 2356 A5BD 1BD7 A08D 0D2F E330 B1DC 7E5F 50CE F402

To claim this, I am signing this object:

@su8ru
su8ru / swagger.yaml
Last active May 3, 2020 22:04
KO・S Train Location Back-end API Documentation
openapi: 3.0.0
info:
version: 1.0.0
title: KO・S Train Location Back-end
contact:
name: su8ru
email: contact@su8ru.dev
servers:
- url: https://kostl.su8ru.app
- url: http://localhost:8000 # for local test
@su8ru
su8ru / twitcasting-comment.css
Created November 16, 2020 14:09
ツイキャスこめんとの OBS 表示 自分用スタイルシート
body { background-color: rgba(0, 0, 0, 0); margin: 0px auto; overflow: hidden; line-height: 1.1; }
div#comment-list-app { display: flex; position: fixed; left: 10px; margin: 0; min-height: 0; max-width: none; min-width: 100vw; }
/* いろいろと非表示(1) */
#tcx_commentwindowheader_pc_responsive {display: none;}
#comment-list-app > div:nth-child(1) { display: none; }
.tw-player-page__comment__post {display: none;}
.tw-player-page__component__title {display: none;}
.alert-info {display: none;}
.alert {display: none;}
@su8ru
su8ru / BootstrapIcon.tsx
Last active August 4, 2021 10:46
Material UI 環境で Bootstrap Icon をいい感じに使えるようにするコンポーネント
import React, { ComponentType, SVGAttributes } from "react";
import { SvgIcon, SvgIconProps } from "@material-ui/core";
// react-bootstrap-icons
interface BIProps extends SVGAttributes<SVGElement> {
color?: string;
size?: string | number;
}
type Icon = ComponentType<BIProps>;
@su8ru
su8ru / thermographyRGB.ts
Created August 8, 2021 14:33
サーモグラフィ風の色変化をシグモイド関数で再現する - Qiita https://qiita.com/masato_ka/items/c178a53c51364703d70b
/**
* サーモグラフィ風の色変化をシグモイド関数で再現する - Qiita
* https://qiita.com/masato_ka/items/c178a53c51364703d70b
*/
const gain = 10;
const offsetX = 0.2;
const offsetGreen = 0.6;
const sigmoid = (_x: number, _gain = 1, _offsetX = 0) =>
@su8ru
su8ru / guestIdGenerator.ts
Last active August 19, 2021 16:30
generate guest ids
import yargs from "yargs";
import crypto from "crypto";
import fs from "fs";
const argv = yargs(process.argv)
.options({
count: {
type: "number",
demandOption: true,
description: "Number of IDs to be generated",