목록개발이야기 (512)
준호씨의 블로그
코딩 채널을 분리 했습니다. 채널명은 잉여코더. 첫화로는 2014년에 올렸던 내용 리메이크로 제작해 보았습니다. (2014년 글 https://junho85.pe.kr/93) hello.c 소스코드 예제 #include int main() { printf("hello june!\n"); printf("hello july!\n"); return 0; } 컴파일 커맨드는 $ gcc hello.c 실행파일이 a.out 으로 만들어 집니다. $ gcc hello.c -o hello 실행파일이 hello 로 만들어 집니다. $ make hello cc hello.c -o hello 가 실행 됩니다. cc 나 gcc 나 c compiler 입니다. OS 나 환경에 따라 같은거일수도 있고 조금 다를 수도 있으나 당장..
url 을 만들 때 공백(' ')은 %20 으로 바꿔준다던지 처리를 해 주어야 한다. libcurl 의 curl_easy_escape 함수를 이용하면 손쉽게 처리 할 수 있다. #include #include #include int main() { CURL *curl = curl_easy_init(); if (curl) { char *string = "hello world"; printf("%lu\n", strlen(string)); // 11 char *output = curl_easy_escape(curl, string, strlen(string)); if (output) { printf("Encoded: %s\n", output); // Encoded: hello%20world curl_free(o..
github 일일커밋 인증샷 자동화. python. selenium from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains from PIL import Image from io import BytesIO driver = None try: driver = webdriver.Chrome('/Users/junho85/Downloads/chromedriver') driver.get("https://github.com/junho85") elem = driver.find_element_by_class_name("js-yearly-contributions") last_date_elem =..