This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
from tkinter import scrolledtext, filedialog | |
import subprocess | |
import threading | |
import os | |
import json | |
# 言語用の辞書の定義 | |
LANGUAGES = { | |
"ja": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import time | |
import psutil | |
import threading | |
import os | |
try: | |
import tkinter as tk | |
from tkinter import ttk | |
except ImportError: | |
subprocess.check_call(["pip", "install", "tk"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class JapaneseEra: | |
ERA_STARTS = { | |
"飛鳥": 592, | |
"白雉": 650, | |
"天武": 672, | |
"朱鳥": 686, | |
"大宝": 701, | |
"慶雲": 704, | |
"和銅": 708, | |
"霊亀": 715, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name dAnime NicoComment Renderer | |
// @namespace https://gist.github.com/roflsunriz/0aa936cf4c42d932e6b64185c83a4ecb | |
// @author roflsunriz | |
// @version 8.8 | |
// @description dアニメでニコニコ動画のコメントを表示するのじゃ! | |
// @match *://animestore.docomo.ne.jp/* | |
// @connect www.nicovideo.jp | |
// @connect nicovideo.jp | |
// @connect *.nicovideo.jp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Image Collector | |
// @namespace https://gist.github.com/roflsunriz/80f7a2fd21db0ea9a6aa5565cedb4c55 | |
// @version 10.2 | |
// @description 画像を収集して表示・ダウンロードするのじゃ! | |
// @author roflsunriz | |
// @match *://*/* | |
// @grant GM_download | |
// @grant GM_registerMenuCommand | |
// @grant GM_setValue |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Imgur Image Link Copier | |
// @namespace https://gist.github.com/roflsunriz/1fa7e451c8d505b68454f8e0fa52520a | |
// @version 1.6 | |
// @description Copy image link from Imgur | |
// @author roflsunriz | |
// @match https://imgur.com/* | |
// @match https://imgur.com/a/* | |
// @grant none | |
// @updateURL https://gist.github.com/roflsunriz/1fa7e451c8d505b68454f8e0fa52520a |