Skip to content

Instantly share code, notes, and snippets.

View katai5plate's full-sized avatar

Hadhad / HanoHano katai5plate

View GitHub Profile
@katai5plate
katai5plate / misskey-deco.js
Created February 22, 2023 05:18
Misskeyデコ文字ブックマークレット
javascript:console.log([...prompt("テキスト")??""].map(a=>{let o={あ:"_a",い:"_i",う:"_u",え:"_e",お:"_o",か:"_ka",き:"_ki",く:"_ku",け:"_ke",こ:"_ko",さ:"_sa",し:"_shi",す:"_su",せ:"_se",そ:"_so",た:"_ta",ち:"_ti",つ:"_tsu",て:"_te",と:"_to",な:"_na",に:"_ni",ぬ:"_nu",ね:"_ne",の:"_no",は:"_ha",ひ:"_hi",ふ:"_fu",へ:"_he",ほ:"_ho",ま:"_ma",み:"_mi",む:"_mu",め:"_me",も:"_mo",や:"_ya",ゆ:"_yu",よ:"_yo",ら:"_ra",り:"_ri",る:"_ru",れ:"_re",ろ:"_ro",わ:"_wa",を:"_wo",ん:"_n",が:"_ga",ぎ:"_gi",ぐ:"_gu",げ:"_ge",ご:"_go",ざ:"_za",じ:"_zi",ず:"_zu",ぜ:"_ze",ぞ:"_zo",だ:"_da",ぢ:"_di",づ:"_du",で:"_de",ど:"_do",ば:"_ba",び:"_bi",ぶ:"_bu",べ:"_be",ぼ:"_bo",ぱ:"_pa",ぴ:"_pi",ぷ:"_pu",ぺ:"_pe",ぽ:"_po",ぁ:"_la",ぃ:"_li",ぅ:"_lu",ぇ:"_le",ぉ:"_lo",ゃ:"_lya",ゅ:"_lyu",ょ:"_lyo",っ:"_ltsu","、":"_ten","。":"_maru","(":"_kkb",")":"_kka","(":"_kkb",")":"_kka",ー:"_wave","~":"_wave"}[a];return o?`:${o}:`:";"===a?"\n":`$[fg.color=00AFFF $[x2 $[position.y=0.3 ${a}]]]`}).join(""));
@katai5plate
katai5plate / WIP_H2A_TileOptimizedScreen.js
Last active June 17, 2022 19:57
タイルサイズに合わせて画面サイズを最適化するプラグイン
/*:ja
* @plugindesc [WIP] タイルサイズに合わせて画面サイズを最適化
*
* @target MZ
* @author Had2Apps
* @url https://github.com/katai5plate/RPGMakerPlugins
*
* @param _scaleWidth
* @text 横拡大倍率
* @type number
const getParetteZeroColor = async (url) => {
// 画像のバッファを取得
const u8 = new Uint8Array(await (await fetch(url)).arrayBuffer());
// パレット情報ヘッダ
const ptag = "PLTE";
// パレット情報のインデックスを取得
const pindex =
u8.findIndex(
7zip 19.0
7zip.commandline 16.02.0.20170209
7zip.install 19.0
7zip.portable 19.0
adwcleaner 8.0.8
aimp 4.70.2239
androidstudio 4.1.2.0
audacity 2.4.2
audacity-lame 3.100.0.20190331
autohotkey 1.1.33.02
@katai5plate
katai5plate / 1-1-0.patch
Created October 30, 2020 09:24
RPGツクールMZ 1.0.2 -> 1.1.0 コアスクリプト差分
From 21dd3f9a791fc7c9b33bba8df8057690bcff8fc0 Mon Sep 17 00:00:00 2001
From: katai5plate <[email protected]>
Date: Fri, 30 Oct 2020 18:35:53 +0900
Subject: [PATCH] 1.1.0
---
js/main.js | 2 +-
js/rmmz_core.js | 4 ++--
js/rmmz_managers.js | 11 ++++++-----
js/rmmz_objects.js | 16 ++++++++++------
@katai5plate
katai5plate / mos.js
Last active October 17, 2020 07:40
MOS Calc
const getMOS = (
edo, // 平均律(オクターブ分割数)
tonics = 7, // 音数(nLms の n+m)
noLimit = false
) => {
const UNKNOWN = "Unknown";
const FAIR_ = "Fair ";
const UNFAIR_ = "UnFair ";
const _HAPPY_ = "Happy (-> Porcupine)";
const _MISH_ = "Mish (-> Amity)";
@katai5plate
katai5plate / php-cheatsheet.md
Last active July 12, 2020 13:40
PHP 自分用チートシート

まだ

  • クラス
  • 名前空間
  • エラー
  • 例外
  • ジェネレータ
  • 組み込みグローバル変数, 定数, 関数など

基本構文

@katai5plate
katai5plate / index.md
Created July 7, 2020 04:43
docker で PHP

1.

  • docker-compose.yml
version: "3"
services:
  app:
    container_name: php
    build:
      context: ./php
      dockerfile: Dockerfile
Chocolatey v0.10.15
7zip 19.0
7zip.commandline 16.02.0.20170209
7zip.install 19.0
7zip.portable 19.0
aimp 4.51.2084
androidstudio 3.5.0.21
audacity 2.3.2
audacity-lame 3.100.0.20190331
autohotkey 1.1.30.03
@katai5plate
katai5plate / js.md
Last active January 31, 2023 22:18
よく使う構文の対応環境一覧

const

{
  "chrome": {
    "version_added": "21"
  },
  "chrome_android": {
    "version_added": "25"
  },
  "edge": {