This file contains hidden or 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 json | |
def get_or_default(obj, key, defVal): | |
return obj[key] if key in obj.keys() else defVal | |
def print_json_files(directory): | |
numId = 0 |
This file contains hidden or 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
=============================================================================== | |
[Dandelion/Torchflower/Poppy/Blue Orchid/Allium/Azure Bluet/Red Tulip/Orange Tulip/White Tulip/Pink Tulip/Oxeye Daisy/Cornflower/Wither Rose/Lily of the Valley] | |
0.0625 0.0 0.0625 0.4375 0.625 0.4375 (x14) | |
+0.25 => [0.3125, 0.6875] | |
0.3125 0.0 0.3125 0.6875 0.625 0.6875 | |
=============================================================================== | |
[Bamboo] | |
-0.0625 0.0 -0.0625 0.5625 1.0 0.5625 ([leaves=large] x4) | |
+0.25 => [0.1875, 0.8125] |
This file contains hidden or 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
1 | |
00:00:00,000 --> 00:00:00,950 | |
BadApple!! 演唱:nomico 填词:Haruka | |
2 | |
00:00:01,000 --> 00:00:29,120 | |
BadApple!! 作曲:ZUN 编曲:Masayoshi Minoshima | |
3 | |
00:00:29,170 --> 00:00:32,120 |
This file contains hidden or 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
{ | |
"parent": "item/template_banner", | |
"textures": { | |
"colour": "minecraft:block/banner/banner_COLOR" | |
} | |
} |
This file contains hidden or 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
package com.example; | |
import com.google.gson.*; | |
import net.minecraft.Util; | |
import net.minecraft.core.BlockPos; | |
import net.minecraft.core.Direction; | |
import net.minecraft.core.registries.BuiltInRegistries; | |
import net.minecraft.resources.ResourceLocation; | |
import net.minecraft.world.level.BlockGetter; | |
import net.minecraft.world.level.block.Block; |
This file contains hidden or 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 re | |
import pandas as pd | |
class Counter: | |
def __init__(self): | |
self.success = 0 | |
self.failure = 0 | |
# Function to replace patterns in the text |
This file contains hidden or 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
TextMeshProUGUI | |
m_Script: {fileID: 1453722849, guid: 67dfb1fdfb2b407222eda8e23ac8b724, type: 3} | |
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3} | |
TMP_SubMeshUI | |
m_Script: {fileID: 1908110080, guid: 67dfb1fdfb2b407222eda8e23ac8b724, type: 3} | |
m_Script: {fileID: 11500000, guid: 058cba836c1846c3aa1c5fd2e28aea77, type: 3} | |
TMP_Dropdown | |
m_Script: {fileID: 1148083418, guid: 67dfb1fdfb2b407222eda8e23ac8b724, type: 3} |
This file contains hidden or 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
af = "Path/to/reference.unity" | |
bf = "Path/to/target.unity" | |
import yaml | |
# Load the YAML files, handling multiple documents | |
a_yamls = {} | |
target_field = "m_text" |
This file contains hidden or 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
package com.example.examplemod; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileReader; | |
import java.io.FileWriter; | |
import java.lang.reflect.Field; | |
import java.util.*; | |
import java.util.function.Predicate; | |
import java.util.stream.Collectors; |
NewerOlder