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
| #!/usr/bin/env python3 | |
| # derived from https://gist.github.com/jinschoi/f39dbd82e4e3d99d32ab6a9b8dfc2f55 | |
| from typing import Iterable, Union, Any | |
| # freq: frequency in Hz | |
| # zerolen: length of space bit in μs | |
| # onelen: length of mark bit in μs |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # converts tasmota irsend commands to flipper ir files | |
| # example usage: python tasmotairjson2flipperir.py <<< '{"Protocol":"NEC","Bits":32,"Data":"0x20DF10EF"}' | |
| import sys | |
| import json | |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 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
| このままゲームを始める。 We're going to start the game. | |
| 何番にコピーしますか? What number would you like to copy? | |
| (上下に動かし番号を変えます) (I'll move it up and down and change the number.) | |
| 消してもよろしいですか? May I turn it off? | |
| Yes Yes. Yes. | |
| メモリーベース128に書き込むことが出来ません。 You can't write on memory base 128. | |
| メモリーベース128のファイルを読むことが出来ません。 I can't read the memory base 128 file. | |
| 内蔵ラムに書き込むことが出来ません。 I can't write it in my internal ram. | |
| このファイルは実行出来ません。 This file cannot be executed. | |
| ぽっぷるメイルのファイルでないとコピー出来ません。 You can't copy it unless it's a pop-up mail file. |
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 sys | |
| def translate_with_sugoi_bulk(raw_list): | |
| # https://huggingface.co/entai2965/sugoi-v4-ja-en-ctranslate2 | |
| import ctranslate2 | |
| import sentencepiece |
OlderNewer