목록기타 (16)
맥에서 오픈소스로

#!/usr/bin/env python3"""Jupiter's Galilean Moons VisualizerThis script shows real-time positions of Jupiter's four Galilean moons(Io, Europa, Ganymede, and Callisto) relative to Jupiter using ASCII art.by WonwooPark, email: bemore.one@gmail.comDependencies:- ephem: pip install ephem- time: standard library- os: standard libraryUsage:python jupiter_moons.pyPress Ctrl+C to exit"""import ephemimpo..

#include #include #include // MAC 주소 설정byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };IPAddress ip(192, 168, 0, 177);unsigned int localPort = 8888;// PLC 입력 설정const int inputPin = 2; // X0 입력 접점word X0_status = 0; // 입력 상태word prev_X0_status = 0; // 이전 입력 상태EthernetUDP Udp;void setup() { Serial.begin(9600); Serial.println("Starting PLC Simulation..."); pinMode(inputPin, INPUT_PUL..

#include #include #include // MAC 주소 설정 (임의의 주소)byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };// 아두이노의 IP 주소 설정IPAddress ip(192, 168, 0, 177);unsigned int localPort = 8888; // 로컬 포트// UDP 통신을 위한 변수EthernetUDP Udp;const int buttonPin = 2; // 버튼 핀 번호int lastButtonState = HIGH;void setup() { Serial.begin(9600); pinMode(buttonPin, INPUT_PULLUP); // 이더넷 초기화 Ethernet.begin(mac, ip); Udp..

const int switchPin = 2; // 스위치가 연결된 디지털 핀int lastSwitchState = HIGH;int currentSwitchState;void setup() { Serial.begin(9600); // 시리얼 통신 시작 pinMode(switchPin, INPUT_PULLUP); // 내부 풀업 저항 사용}void loop() { currentSwitchState = digitalRead(switchPin); // 스위치 상태가 변경되었을 때만 신호 전송 if (currentSwitchState != lastSwitchState) { if (currentSwitchState == LOW) { // 스위치가 눌렸을 때 Serial.printl..
끌로드가 알려주는 파이썬 조각코드들은 늘 그렇지만내 코드에 삽입할때 들여쓰기가 안맞아서 골탕을 먹을때가 종종 있다.그래서 늘 전체코드를 보여 달라고 주문하지만그렇때마다 이런 유료 챗봇의 토큰이 낭비된다. 바야흐로 chatGPT 시대에 파이썬이란 언어의 치명적인 담점이 될수도 있겠다~

- 눈코입에 사용되는 슬러퍼의 색깔을 바꾸어도 여전히 얼굴로 인식하는지가 궁금해지네요 ... ~- 어떤 앱인지는 몰라도 얼굴인식 알고리즘이 매우 허술한가 봅니다.

- 저는 Jupyter Notebook을 주피터가 아닌 주파이터 노트북이라고 부릅니다. 주피터(Jupiter)는 목성을 뜻하는 단어의 발음이기 때문입니다.- Octave는 비싼 공학용 프로그램인 매트랩의 오픈소스 클론입니다. 골짜란 이야기죠~ 하지만 매트랩과 코드가 90이상 호환됩니다. 비싼 툴박스들을 빼면 신호처리나 영상처리 정도는 충분히 옥타브로도 구동이 가능하죠.- Octave = Poorman's Matlab. - 그동안 이렇다할 전용 편집기가 아쉬었던 옥타브 ...가 주파이터 노트북에서 돌아간다니~ - 이거 대박인데요!- 하지만 파이썬 덕분에 매트랩의 입지는 점점 줄어드는중 ... - 어쩌면 파이썬 창궐의 최대 피해자는 매트랩 일지도 모르겠군요 ~!