Skip to content

Instantly share code, notes, and snippets.

@developer-commit
developer-commit / main.py
Last active January 31, 2026 18:24
insta
"""
임베디드라 c로 작성해야 하겠지만, 귀찮은 관계로 python사용
https://www.youtube.com/watch?v=UlvbLeI7l5w&t=1s
본 영상속 장치를 만드는 영상입니다.
우리는 코드만을 시뮬레이션 할 것이고 귀찮은 관계로, 작은 형태로만 시뮬레이션 하겠습니다.
구현의 편의상 5개의 레일, 아래에서 무작위로 구슬층이 올라온다고만 가정하겠습니다. (영상에서 보면 알수 있듯 실제로도 무작위로 올라옵니다, 거기서 조건에 맞는 구슬만 내려보내는겁니다)
레일에 구슬이 다 차기전에 시간이 바뀌면 디스플레이 영역에, 미완성 된 형태로 들어갑니다.
@developer-commit
developer-commit / tls_tor.rs
Created January 27, 2025 19:22
This Rust code provides a client implementation for HTTPS communication over the Tor network
/*
***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"
@developer-commit
developer-commit / capture.swift
Created January 25, 2025 07:32
example by window capture
// 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