Skip to content

Instantly share code, notes, and snippets.

@roflsunriz
roflsunriz / imgur_direct_link_copier.user.js
Last active May 24, 2025 07:59
Imgur.com Direct Link Copier : Imgurの画像ページでダイレクトリンクをコピー
@roflsunriz
roflsunriz / HeatingCostCalculator.py
Last active January 12, 2025 00:34
HeatingCostCalculator : 暖房費計算プログラム 全国の暖房費を暖房器具ごとに1ヶ月のランニングコストを計算します。
class HeatingCostCalculator:
def __init__(self):
# 電力会社ごとの料金データを更新
self.electricity_companies = {
'東京電力': {
'base_fee': 935.25,
'rates': [
{'limit': 120, 'rate': 29.80},
{'limit': 300, 'rate': 36.40},
{'limit': float('inf'), 'rate': 40.49}
@roflsunriz
roflsunriz / DaikinACCostCalculator.py
Last active January 12, 2025 00:34
DaikinACCostCalculator : エアコン電気代計算プログラム ダイキンEシリーズエアコンの地域ごとモデルごとのランニングコストを計算します。
class DaikinACCostCalculator:
def __init__(self):
# 既存の電力会社データを継承
self.electricity_companies = {
'東京電力': {
'base_fee': 935.25,
'rates': [
{'limit': 120, 'rate': 29.80},
{'limit': 300, 'rate': 36.40},
{'limit': float('inf'), 'rate': 40.49}
@roflsunriz
roflsunriz / japaneseEra.py
Last active January 12, 2025 00:33
japaneseEra : 和暦(年号・元号)西暦変換プログラム
class JapaneseEra:
ERA_STARTS = {
"飛鳥": 592,
"白雉": 650,
"天武": 672,
"朱鳥": 686,
"大宝": 701,
"慶雲": 704,
"和銅": 708,
"霊亀": 715,
@roflsunriz
roflsunriz / taskkill_wizard_gui.pyw
Last active March 22, 2025 14:16
taskkill_wizard_gui : タスクキルをGUIで出来るウィザード
import tkinter as tk
from tkinter import ttk, scrolledtext, messagebox
import psutil
import os
import win32gui
import win32process
import win32con
import win32api
from PIL import Image, ImageTk
import io
@roflsunriz
roflsunriz / OpenWebUI.pyw
Last active March 22, 2025 14:15
OpenWebUI.py : Open-WebUIサーバーを127.0.0.1:8081で自動的に開始し、文字列が現れるのを待った後Firefoxでページを開く。
import subprocess
import time
import psutil
import threading
import os
import socket
import random
try:
import tkinter as tk
from tkinter import ttk
@roflsunriz
roflsunriz / WSAInstallAPK.pyw
Last active August 14, 2025 02:23
WSAInstallAPK.py : GUI Program that performs installing APK for WSA (Windows Android Subsystem)
import tkinter as tk
from tkinter import scrolledtext, filedialog
import subprocess
import threading
import os
import json
# 言語用の辞書の定義
LANGUAGES = {
"ja": {
@roflsunriz
roflsunriz / auto_cursor.pyw
Created February 5, 2025 13:03
auto_cursor.pyw : Cursorを常駐させておくGUIプログラム
import os
import time
import psutil
import win32gui
import win32con
from subprocess import Popen
import tkinter as tk
from tkinter import ttk, messagebox
import winreg
import sys
@roflsunriz
roflsunriz / dAnimeNicoCommentRenderer2.user.js
Last active September 6, 2025 04:20
dAnimeNicoCommentRenderer2 : dアニメでニコニコ動画のコメントをレンダリングするプログラム(改訂整理版)
// ==UserScript==
// @name dAnimeNicoCommentRenderer2
// @namespace dAnimeNicoCommentRenderer2
// @version 4.3
// @description dアニメストアの動画にニコニコ動画のコメントを流すUserscript
// @author roflsunriz
// @match https://animestore.docomo.ne.jp/animestore/sc_d_pc*
// @match https://animestore.docomo.ne.jp/animestore/mp_viw_pc*
// @grant GM_xmlhttpRequest
// @grant GM_setValue
@roflsunriz
roflsunriz / ImageCollector2.user.js
Last active May 24, 2025 20:24
Image Collector2 : Webページにある画像を収集するユーザースクリプト (改訂整理版)
// ==UserScript==
// @name ImageCollector2
// @namespace imageCollector2
// @version 4.2
// @description 画像を収集して表示するユーザースクリプト
// @author roflsunriz
// @match *://*
// @match *://*/*
// @connect *
// @connect */*