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
from pathlib import Path | |
import numpy as np | |
from PIL import Image | |
def open_maskmap(path: Path) -> np.ndarray: | |
img = Image.open(path) | |
return np.asarray(img) |
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
# vv_core_wrapper.py | |
# Copyright (c) 2022 takana-v | |
# | |
# This software is released under the MIT License. | |
# http://opensource.org/licenses/mit-license.php | |
import faulthandler | |
import json | |
from ctypes import * |
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
[ | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "interfaceId", | |
"type": "bytes4" | |
} | |
], | |
"name": "supportsInterface", |
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
# quest_fbt.py | |
# Copyright (c) 2022 takana-v | |
# | |
# This software is released under the MIT License. | |
# http://opensource.org/licenses/mit-license.php | |
import math | |
from pythonosc import udp_client | |
import openvr |
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 unicodedata | |
hankaku_alphabet = "".join(chr(0x21 + i) for i in range(94)) | |
zenkaku_alphabet = "".join(chr(0xff01 + i) for i in range(94)) | |
translate_table = str.maketrans(hankaku_alphabet, zenkaku_alphabet) | |
original_dict = "/path/to/naist-jdic.csv" | |
normalized_dict = "/path/to/normalized.csv" | |
def text_normalize(text: str): |
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
[ | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "interfaceId", | |
"type": "bytes4" | |
} | |
], | |
"name": "supportsInterface", |
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
pragma solidity 0.5.4; | |
contract helloWorld { | |
string data; | |
function pureHelloWorld() public pure returns(string memory) { | |
return "hello world"; | |
} | |
function readStrData() external view returns(string memory) { | |
return data; | |
} | |
function sendStrData(string memory sendData) public { |
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
{ | |
"capabilities": [ | |
"proposal" | |
], | |
"version": 536870912, | |
"rules": [ | |
"csv", | |
"!segwit", | |
"taproot" | |
], |