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 | |
| # Copyright 2018 Hung-Te Lin. All rights reserved. | |
| # Use of this source code is governed by MIT license. | |
| """A program to decrypt mega://enc2?.... link. | |
| Inspired from https://github.com/denysvitali/megadecrypter | |
| """ | |
| import base64 | |
| import binascii |
本文譯自 Julio Merino 2018 年七月撰寫的 Rust vs. Go 一文。Julio Merino 是 G 社僱員,在 G 社工作超過 8 年,無論工作內外,都接觸開發不少 Go 語言,並撰寫 [Rust 點評][rust-review]系列文,來聽聽他對 Rust 與 Go 的想法吧。
Thanks Julio Merino for this awesome article!
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
| from langchain.callbacks.base import BaseCallbackHandler | |
| import azure.cognitiveservices.speech as speechsdk | |
| import os | |
| import base64 | |
| import time | |
| class StreamDisplayHandler(BaseCallbackHandler): | |
| def __init__(self, container, initial_text="", display_method='markdown'): | |
| self.container = container | |
| self.text = initial_text | |
| self.display_method = display_method |
OlderNewer