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
| """ | |
| 임베디드라 c로 작성해야 하겠지만, 귀찮은 관계로 python사용 | |
| https://www.youtube.com/watch?v=UlvbLeI7l5w&t=1s | |
| 본 영상속 장치를 만드는 영상입니다. | |
| 우리는 코드만을 시뮬레이션 할 것이고 귀찮은 관계로, 작은 형태로만 시뮬레이션 하겠습니다. | |
| 구현의 편의상 5개의 레일, 아래에서 무작위로 구슬층이 올라온다고만 가정하겠습니다. (영상에서 보면 알수 있듯 실제로도 무작위로 올라옵니다, 거기서 조건에 맞는 구슬만 내려보내는겁니다) | |
| 레일에 구슬이 다 차기전에 시간이 바뀌면 디스플레이 영역에, 미완성 된 형태로 들어갑니다. |
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
| /* | |
| ***warning*** | |
| I have not checked with tools like Wireshark whether it was transmitted in an encrypted form. | |
| arti-client = "0.24.0" | |
| tokio = { version = "1", features = ["full"] } | |
| tor-rtcompat = "0.24.0" | |
| tokio-rustls = "0.26.0" | |
| webpki-roots = "=0.26.7" |
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
| // origanl code : https://stackoverflow.com/questions/78846311/screencapturekit-example-in-go-c | |
| import Foundation | |
| import ScreenCaptureKit | |
| import CoreGraphics | |
| import AppKit | |
| func captureScreenshot(display: SCDisplay?, window: SCWindow, app: SCRunningApplication,completion: @escaping (NSImage?) -> Void) { | |
| let filter: SCContentFilter |