분류 전체보기
-
[자료구조] Queue & Stack개발/자료구조와 알고리즘 2022. 1. 21. 02:48
Queue 한쪽 끝으로 데이터를 넣고 반대쪽 끝으로 데이터가 나오는 FIFO(First In First Out)형식의 자료 구조 사용 사례 데이터를 입력된 시간 순서대로 처리해야 할 필요가 있는 상황에 이용(대기열) 캐시(Cache) 프로세스 관리 코드와 연산 # 리스트 형태의 큐 # 큐 생성 queue = [] # 큐에 값 추가 (enqueue) queue.append(1) # 큐에서 값 제거 후 반환 (dequeue) queue.pop(0) 파이썬 기본 모듈을 이용한 큐 import queue # 큐 생성 q = queue.Queue() # 큐에 요소 추가 q.put(123) # 큐에서 요소 제거 후 반환 q.get() queue — 동기화된 큐 클래스 — Python 3.9.10 문서 queue —..
-
[프로젝트] TradingBot / 업비트 자동 매매 봇개발/프로젝트 2022. 1. 18. 01:21
원래 굉장히 거창한 목적으로 만들었지만 기본 기능만 구현하고 멈춰버린 봇...... https://github.com/LJBang/Coin_Trading_Bot GitHub - LJBang/Coin_Trading_Bot Contribute to LJBang/Coin_Trading_Bot development by creating an account on GitHub. github.com 프로젝트 시작 2020년 말에 동아리 해커톤에서 뭘 하지 생각하다가 아는 동생이랑 매매봇을 만들기로 했다. 처음에는 그냥 api받아와서 뭔가를 하려고 했는데, 쉽지 않았다... 계속 찾아보니까 pyupbit라는 라이브러리가 있어서 대충 가격만 받아와서 매매 시뮬레이션만 돌려봤었다. 그러다가 21년 초에 갑자기 코인 붐이 ..
-
[책 리뷰] 달러구트 꿈 백화점 - 이미예리뷰/책 리뷰 2022. 1. 17. 01:02
달러구트 꿈 백화점 - 이미예 꿈 속 세계의 페니는 세상에서 가장 유명한 꿈 상점인 달러구트 꿈 백화점에 취직하게 되고, 다양한 꿈과 손님들, 꿈 제작자들을 만나며 이야기를 풀어나간다. 감상 재미있게 읽었다! 지금 보니 문장을 정리하지 않았는데, 문장을 정리할 생각도 잊을 정도로 재미있었던게 아닐까...? 사실 살 때는 몰랐는데 읽으면서 보니 한국 작가길래 한 번 더 놀랐다... 은연중에 한국 문학에 대한 편견이 있었을 지도 모른다. 약간... 완득이 같은 느낌의 책들 말이다. 재미없다는건 아니고 그냥 그런 느낌... 반면에 이 책의 세계관은 너무 이국적이어서 한국작가가 썼다고 생각하지 못했었다. 세계관도 세계관이지만 장면 묘사가 너무 좋다. 읽으면서 장면이 눈에 보이는 느낌이었다. 내용도 좋다. 예지몽..
-
[책 리뷰] 동물농장 - 조지 오웰리뷰/책 리뷰 2022. 1. 15. 01:39
동물 농장 - 조지 오웰 돼지들의 주도로 농장에 혁명이 일어난다. 동물들끼리 농장을 꾸려나가게 된 이들은 처음에는 단합이 잘 되는 듯 하였으나 분열이 일어난다. 문장 스노볼은 뛰어난 연설로 회의 때마다 다수의 지지자를 얻어내는 반면 나폴레옹은 기회가 있을 때마다 개별적으로 은밀히 접촉해 자신에게 표를 끌어 모으는 능력이 뛰어났다. "우리가 우유와 사과를 먹는 것도 다 여러분들을 위한 일입니다." 모든 동물들은 평등하다. 하지만 어떤 동물들은 다른 동물들 보다 더욱 평등하다. 감상 재밌었다. 일단 기본적으로 내용이 많지 않다! 등장 동물들의 심리를 잘 볼 수 있고, 이야기의 전개도 빠르다. 다양한 사건 사고들을 통해 동물들간의 갈등이 심화되어 지루하지 않게 잘 볼 수 있었다. 욕심 많은 인간을 돼지에 빗대..
-
[책 리뷰] 모래알만 한 진실이라도 - 박완서리뷰/책 리뷰 2021. 12. 9. 03:24
모래알만 한 진실이라도 - 박완서 박완서 작가의 단편 에세이 660편 중에서 35편을 엄선해서 엮은 책. 문장 이 세상 사람들이 다 나보다는 착해보이는 날이 있다. 그날도 그런 날이었고, 그런 날은 살 맛이 난다. 원 뭐 눈엔 x밖에 안 뵌다더니..., 넌 어째 그런 것 밖에 못 보냐? 난 부처님 한 분 우러르기에 그저 감지덕지 하느라 그런 건 눈 귀에도 안 들어오더니만... 내 눈으로 확인한 그의 비참조차 믿을 수 없었던 것이다. 마치 속아만 산 사람처럼, 정치가의 말을 믿지 않던 버릇으로, 세무쟁이를 믿지 않던 버릇으로, 외판원을 믿지 않던 버릇으로, 장사꾼을 믿지 않던 버릇으로, 거지조차 못 믿었던 것이다. 그 정도의 사윗감은 쌔고 쌨으려니 했다. 그러나 웬걸, 내가 가장 보통이라고 생각하고 내세운..
-
[책 리뷰] 죄와 벌 - 도스토예프스키리뷰/책 리뷰 2021. 12. 9. 02:29
블로그를 시작했으니 노션에 있는 리뷰들을 옮기는 작업을 해야겠다. 대망의 첫번째 책은 좀 있어보이는 것으로 한다. 죄와 벌 - 도스토예프스키 1860년대 후반, 대학생 라스콜니코프는 전당포 노파를 죽인다. 모든 이야기는 그 이후의 라스콜니코프의 심리상태를 중심으로 전개된다. 문장 하나의 하찮은 범죄가 수천 개의 선한 일로 무마될 수는 없을까? → 라스콜니코프의 마음속 생각을 확신으로 바꿔주는 어떤 다른 대학생의 발언. 도끼 등으로 머리를 내리쳤다. 그는 역시나 도끼 등으로 역시나 정수리를 있는 힘껏 한 번 더 내리쳤다. 도끼날은 곧바로 두개골을 내리쳤고, 이마의 윗부분을 거의 정수리까지 전부 금방 쪼개 버렸다. → 노파를 죽이는 과정과 그 동생을 죽이는 과정의 변화에서 라스콜니코프의 망설임이 사라진다. ..
-
[프로젝트] Django 프로젝트 / Heros개발/프로젝트 2021. 12. 9. 00:38
지금까지 해왔던 프로젝트들을 회고하려고 한다. 아주 작은것도 적어야지. 너무 옛날 것들은 기억이 잘 안나지만 최대한 당시에 느낀점 위주로 적어야겠다. 첫번째 회고도 꽤 지난 프로젝트이다. 2020년, 3학년 1학기에 소프트웨어 공학 수업을 들으면서 진행한 팀프로젝트이다. https://github.com/LJBang/Heros GitHub - LJBang/Heros: 소공 텀프 소공 텀프. Contribute to LJBang/Heros development by creating an account on GitHub. github.com 깃헙 정리도 엉망이니까 새로 해야겠다... 뭐 말이야 인력 필요한사람 - 시간 남는사람 매칭하는 서비스이지만, 그냥 기본적인 CRUD를 사용한 웹 서비스이다. 나는 계정..
-
블로그를 시작? 내가?일상 2021. 12. 7. 21:05
요즘 주변에서 일상이나 감정을 공유하는 사람들이 점점 늘고있다. 인스타만 봐도 부캐를 만들어서 친한사람들이랑만 감정을 공유하는 친구들이 많이 생겼는데, 그저 감정을 숨기기만 했던 나는 좀 신기하면서도 일말의 부러움이 있었다~ 블로그도 그렇다. 이전부터 뭔가를 공유하고 싶은 마음은 있지만 꾸준히 하기 어렵고... 이런 글을 쓰고 공유한다는게 좀 오글거리고 약간 관종인것 같다는 느낌을 언제나(지금도) 갖고 있었는데, 언제나 그렇듯이 해보고 욕해라! 라는 마인드로 블로그를 시작한다. 뭐 관종이면 어때~ 암튼 이런 이유도 있고, 이번에 프로그래머스 데브캠프에서 TIL을 기록하는 모습을 보여달라고 해서 블로그를 판 것도 있다. 전에는 그냥 프라이빗 깃에 업로드 했었는데, 이건 진짜 프라이빗이라서..... 공유할 ..