Skip to content

Instantly share code, notes, and snippets.

View karakufire's full-sized avatar
㊙️

karakufire karakufire

㊙️
View GitHub Profile
@karakufire
karakufire / script.js
Created November 2, 2023 15:59
Redirect watch to embed
// ==UserScript==
// @name Redirect watch to embed
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Redirect watch url to embed url.
// @author karakufire
// @match https://www.youtube.com/watch?v=*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// ==/UserScript==
@karakufire
karakufire / NSFW-Rule.md
Last active July 26, 2023 15:23
Misskey.io Standard of NSFW marking(My English translation)

What means the "NSFW"?

NSFW is the acronym of Not safe for work, literally said that it's better not to see them in your place of work. Although the words are written "work", but attension it means NOT suitable for viewing in public spaces such as schools, trains, etc.

Differences between R-18

Example of not need NSFW: (Here is the non-NSFW example picture)

Example of need NSFW: (Here is the NSFW example picture)

@karakufire
karakufire / high-contrast 01.is
Created June 23, 2023 04:40
Misskey用自作テーマ
{
id: '966384eb-6d8f-4fe7-9790-ff0f7da9a73a',
base: 'dark',
name: 'High-Contrast 01',
props: {
X2: ':darken<2<@panel',
X3: 'rgba(255, 255, 255, 0.05)',
X4: 'rgba(255, 255, 255, 0.1)',
X5: 'rgba(255, 255, 255, 0.05)',
X6: 'rgba(255, 255, 255, 0.15)',
@karakufire
karakufire / faq, thermalpedia jp translation wip.json
Created February 2, 2023 12:45
click area disaligned when window size changed
{
"name": "身近な質問の回答",
"icon": "minecraft:redstone",
"category": "thermal:guides",
"sortnum": -3,
"read_by_default": true,
"pages": [
{
"type": "patchouli:text",
"text": "Q: Dynamicsやパイプはどこへいったの?$(br)A: $(l:thermal:storage_and_transport/dynamics)ここ$(/l)をお読みください。$(br2)Q: アップグレードキットはどこにありますか?$(br)A: $(l:thermal:technology/augments/integral_components)ここ$(/l)をお読みください。$(br2)Q: 機械の処理速度を加速するには?$(br)A: $(l:thermal:technology/augments/integral_components)ここ$(/l)と$(l:thermal:technology/augments/machine_speed)ここ$(/l)をお読みください。$(br2)Q: このオーグメントはスタックできますか?$(br)A: $(l:thermal:technology/augments/introduction)ここ$(/l)をお読みください。"
@karakufire
karakufire / style.css
Created January 24, 2023 13:41
ヒの右カラムをスッキリさせるcss
/* 右カラムのトレンド等の消去 */
.r-18l7dai > :not(:first-child):not(:nth-child(2)):not(:last-child):not(.r-kemksi):not(.r-yfoy6g):not(.r-14lw9ot) {
display: none !important;
}
/* 右カラムのフッタの位置調整 */
.r-18l7dai > *:last-child {
height: fit-content;
bottom: 0;
}

Forge1.18.xデータ自動生成まとめ

導入

MC1.14以降のForgeにはデータファイルの自動生成機能(Data Generation)が搭載されている。

例えば1.16.5などに対応した他人のModのプロジェクトで、src/generatedってディレクトリを見たことある人も少なくないだろう。このディレクトリは正しくその自動生成されたデータファイルが格納されるのである。

ここでは、Minecraft 1.18.x用のMinecraft Forge(確認はMinecraft Forge 1.18.2-40.1.51)での使用方法をまとめている。

@karakufire
karakufire / ラテン文字拡張.txt
Last active November 15, 2021 16:06
私用ダイアクリティカルマーク付きアルファベット変換辞書ファイル
A Ǎ アルファベット ハーチェク付きA
a ǎ アルファベット ハーチェク付きa
A Ă アルファベット ブレーヴェ付きA
a ă アルファベット ブレーヴェ付きa
A Ȧ アルファベット 上ドット付きA
a ȧ アルファベット 上ドット付きa
A Ạ アルファベット 下ドット付きA
a ạ アルファベット 下ドット付きa
A Ȃ アルファベット 倒置ブレーヴェ付きA
a ȃ アルファベット 倒置ブレーヴェ付きa
@karakufire
karakufire / script.js
Last active October 22, 2020 22:53
weblio 英和和英辞典 フォーカス操作ユーティリティ
(function() {
'use strict';
document.querySelector('input#searchWord').focus();
document.addEventListener('keydown', e => {
if(e.isComposing || e.keyCode == 229);
else if(e.isComposing || e.keyCode === 27) document.querySelector('input#searchWord').blur();
return;
});
document.addEventListener('keyup', e => {
if(e.isComposing || e.keyCode === 229);
"rc_zinc": {
"distribution": "uniform",
"generator": {
"block": {
"name": "railcraft:ore_metal",
"properties": {
"type": "Zinc"
}
},
"material": "minecraft:stone",
"material": [
"minecraft:stone",
{
"block": {
"name": "railcraft:ore_matal_poor",
"properties": {
"type": "zinc"
}
}
}