Skip to content

Instantly share code, notes, and snippets.

View rz7d's full-sized avatar

azure rz7d

  • Oita, Japan
  • 22:25 (UTC +09:00)
View GitHub Profile
@rz7d
rz7d / LICENSE-tsumiki.md
Last active September 9, 2025 18:07
rev 系プロンプトが便利だったので Codex CLI prompts/ 向けの classmethod/tsumiki quick and dirtyな移植 ※本家推奨 → https://github.com/classmethod/tsumiki

MIT License

Copyright (c) 2025 makotan

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 furnished to do so, subject to the following conditions:

@rz7d
rz7d / Convert.java
Last active April 23, 2022 04:59
TVTest の .ch2 ファイルから Mirakurun の channels.yml を作る (地上波決め打ち, quick & dirty)
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
public class Convert {
public static void main(String[] args) throws Exception {
var csv = new String(System.in.readAllBytes(), Charset.forName("MS932"));
var lines = csv.split("\r?\n");
@rz7d
rz7d / confidential.css
Created April 8, 2022 01:41
画面にConfidentialと出すだけのCSS
body:after {
content: "CONFIDENTIAL";
z-index: 999999;
position: fixed;
top: 0;
left: 0;
font-size: 72pt;
opacity: 10%;
color: red;
pointer-events: none;
@rz7d
rz7d / マルチトラック分割.cmd
Last active January 30, 2022 21:33
マルチトラック録画 (デスクトップ画面, デスクトップ全体の音声, マイク, アプリ音声) されたファイルからデスクトップ全体の音声のみ, アプリ音声のみ, デスクトップ全体の音声+マイク, アプリ音声+マイクの組み合わせで4つの動画ファイルを作成します。WTFPL
@echo off
setlocal enabledelayedexpansion
set TRACK_SYSTEM_SOUND=0
set TRACK_MICROPHONE=1
set TRACK_APP_SOUND=2
set AUDIO_BITRATE=128k
set ffmpeg="%~dp0ffmpeg"
for %%f in (%*) do (
echo %%f
javascript:(()=>{const autoClick=()=>{Array.from(document.querySelectorAll("div[role=button]>div>div")).filter(({children:e})=>e&&e.length&&"返信をさらに表示"===e[0].innerText).forEach(e=>e.click())};new MutationObserver(autoClick).observe(document.querySelector('div[aria-label="タイムライン: 会話"]>div'),{childList:!0}),autoClick();})();
@rz7d
rz7d / tweetdeck.css
Last active February 9, 2021 02:35 — forked from katabame/tweetdeck.css
Tweetdeckの背景を好きな画像に変更するやつ
/**********
TweetDeckの背景を好きな画像に変更するやつ
LICENSE: WTFPL
-- 使い方 --
0. カスタムCSSをあてられる環境を作ります
BetterTweetDeck ( https://better.tw/ ) をインストール
1. BetterTweetDeckの設定を開く
Chromeの拡張機能の設定から開くか、TweetDeckの左端に追加されている青色のボタンをクリック
2. Custom CSSに移動し、このCSSをコピペ

Cygwin, MSYS, MSYS2, MinGW, mingw-w64, WSL, WSL2 の違い

名称 役割 説明
MinGW コンパイラ Windows 用の GNU ツールチェーン。
とにかく Windows 用の gcc や GNU ld。
"Windows 用" とは、Windows 上で動作したり、Windows 用のアプリが作れたりすること。
要するに Visual C++ や Clang/LLVM みたいなもの。
mingw-w64 コンパイラ MinGW のフォーク。Win64 向けの改良が加わっており、2021 年現在の主流。
Cygwin POSIX 環境 Windows 用の POSIX 環境。cygwin1.
/*
* Copyright (C) 1999-2001 Brian Paul All Rights Reserved.
*
* 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 furnished to do so, subject to the following conditions:
*
package com.github.rz7d.jarmerger;
import java.io.IOException;
import java.net.URI;
import java.nio.file.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Collectors;
@rz7d
rz7d / Fibonacci.java
Last active March 15, 2020 11:30
Fibonacci
import java.io.IOException;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.RoundingMode;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;