본문 바로가기

icebolt , 프로그래밍으로 생명과학을 만나다.

(34)
시작
Mathologer https://www.youtube.com/watch?v=fw1kRz83Fj0 인형을위한 pi에 e https://www.youtube.com/watch?v=-dhHrg-KbJ0 Times Tables, Mandelbrot and the Heart of Mathematics https://www.youtube.com/watch?v=qhbuKbxJsk8
자료구조 https://youtu.be/BHkIrBeVrWEhttps://youtu.be/ttkVpae9Xz8 상상개발자 REMOVE //첫번째 노드만 지우는 코드이다. 링크드리스트는 첫번째 노드를 살려야 하므로 두번째 노드로 옮겨주는 코드를 다음처럼 한후에 리므브함수를 순환하게 된다. def remove(self, item): if self.head.val == item: #첫번째 노드인 self.head에 찾는 값(item)이 있다면........ 이때 self.head.val은 self.head.val이 가리키는 값이다. 값들끼리 비교한는 것이다. self.head = self.head.next #self.head를 self.head.next로 옮긴다. 이때 self.head.next는 self.head.n..
sort() 함수 다루기 https://youtu.be/YJ-OUnZu7nQ
정렬알고리즘 (Algorithm Programming) 선택정렬 https://youtu.be/8ZiSzteFRYc https://m.blog.naver.com/ndb796/221226800661 버블정렬 https://youtu.be/EZN0Irp2aPs https://m.blog.naver.com/ndb796/221226803544 삽입정렬 https://youtu.be/16I9Z7bS1iM https://m.blog.naver.com/ndb796/221226806398 퀼정렬 https://youtu.be/O-O-90zX-U4 퀵정렬 알고리즘 요약 https://gmlwjd9405.github.io/2018/05/10/algorithm-quick-sort.html
Building a Job Scrapper(5) #2.8 Extracting Locations and Finishing up # 반복될 수 있는 부분을 함수로 만들어 둔다. def extract_job(html): #이 함수를 만들었다. html이 result 이다. title = html.find("div",{"class":"title"}).find("a")["title"] company = html.find("span", {"class":"company"}) company_anchor = company.find("a") if company.find("a") is not None: company = str(company_anchor.string) else: company = str(company.string) company = company.stri..
Building a Job Scrapper(4) #2 7 Extracting Companies #company 출력하기 def extract_indeed_jobs(last_page): jobs = [] #for page in range(last_page): result = requests.get(f"{URL}&start={0*LIMIT}") soup = BeautifulSoup(result.text, "html.parser") results = soup.find_all("div", {"class": "jobsearch-SerpJobCard"}) for result in results: title = result.find("div",{"class":"title"}).find("a")["title"] company = result.find("span", ..
Building a Job Scrapper(3) 노마드코더님 감사합니다.^^ #2.6 Extracting Titles https://academy.nomadcoders.co/courses/681401/lectures/12171971 import requests from bs4 import BeautifulSoup LIMIT = 50 URL = f"https://www.indeed.com/jobs?q=python&limit={LIMIT}" def extract_indeed_pages(): result = requests.get(URL) soup = BeautifulSoup(result.text, "html.parser") pagination = soup.find("div", {"class": "pagination"}) links = pagination...
Building a Job Scrapper(2) import requests from bs4 import BeautifulSoup indeed_result = requests.get('https://www.indeed.com/jobs?q=python&limit=50') #print(indeed_result.text) indeed_soup = BeautifulSoup(indeed_result.text, "html.parser") print(indeed_soup) pagination = indeed_soup.find("div", {"class": "pagination"}) #print(pagination) links = pagination.find_all('a') #print(pages) pages = [] for link in links: pages.a..
Building a Job Scrapper # import requests 를 입력하기 전에 search에서 requests 를 입력, package에서 Python HTTP for Humans을 찾아 설치. # url은 구글에서 indeed python을 입력해서 얻는다. Refl.it -----> Github --> pt/requests >>> import requests >>> r = requests.get('https://api.github.com/user', auth=('user', 'pass')) >>> r.status_code 200 >>> r.headers['content-type'] 'application/json; charset=utf8' >>> r.encoding 'utf-8' >>> r.text u'{"type":"User"..
귀류법 √2 귀류법으로 루트2는 루트2가 아님을 증명하다. https://tro.kr/60
oop 객체와 오브젝트 이해하기 https://www.youtube.com/watch?v=GwL5uUP7F1Y 객체지향 프로그래밍이 무엇인가요? https://www.youtube.com/watch?v=vrhIxBWSJ04
카카오책 검색기능 구현(API 개념활용) 1. jQuery CDN --> jQuery Core 아래 uncomprssed클릭한 후 코드복사 -->vs code>index.html -->태그 바로 위에 붙여넣기. 2. jQuery Ajax 검색---> jQuery.Ajax()를 이용한 함수들 중에서 example을 찾아서 코드를 카피 --> 자바스크립트를 작성할 것이기에 바디태그안쪽 script 태그를 만들어 붙여넣기 3. API 가이드 ---> 카카오 개발자 로그인 --> 앱만들기 클릭 --> API키 발급 --> 개발가이드 -->검색 --> REST API개발가이드 ---> 책검색 ---> request / response 에 대한 정보 참고 ---> 키를 넣어줄때 headers인지 확인( Headers라고 입력하면 오류 뿡뿡 ㅠㅠ ) -->..
티스토리 첫화면 등록하기 2020 1. 1 꾸미기 > 스킨편집 > html편집에서 다음 스크립트를 아래에 입력해 준다. 참고: https://taesany.tistory.com/136
칸아카데미>>SQL>>gradebook CREATE TABLE student_grades ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT, number_grade INTEGER, fraction_completed REAL); INSERT INTO student_grades (name, number_grade, fraction_completed) VALUES ("Winston", 90, 0.805);INSERT INTO student_grades (name, number_grade, fraction_completed) VALUES ("Winnefer", 95, 0.901);INSERT INTO student_grades (name, number_grade, fraction_completed) VALUES..
칸아카데미>>SQL>>CASE Calculating results with CASE CREATE TABLE exercise_logs (id INTEGER PRIMARY KEY AUTOINCREMENT, type TEXT, minutes INTEGER, calories INTEGER, heart_rate INTEGER); INSERT INTO exercise_logs(type, minutes, calories, heart_rate) VALUES ("biking", 30, 100, 110);INSERT INTO exercise_logs(type, minutes, calories, heart_rate) VALUES ("biking", 10, 30, 105);INSERT INTO exercise_logs(type, minutes, calor..
sql CREATE TABLE books ( id INTEGER PRIMARY KEY AUTOINCREMENT, author TEXT, title TEXT, words INTEGER); INSERT INTO books (author, title, words) VALUES ("J.K. Rowling", "Harry Potter and the Philosopher's Stone", 79944); INSERT INTO books (author, title, words) VALUES ("J.K. Rowling", "Harry Potter and the Chamber of Secrets", 85141); INSERT INTO books (author, title, words) VALUES ("J.K. Rowling", ..
자바스크립트_객체지향_object 1#var arr = {'name': 'jason', 'age': 20, 'city': 'Seoul' }; Object.keys(arr) ["name", "age", "city"] arr.name "jason" arr.age //20 arr.city //"Seoul" arr.toS //undefined arr.toString toString() { [native code] } 2#var arr = {'name': 'jason', 'age': 20, 'city': 'Seoul' }; arr Object {name: "jason", age: 20, city: "Seoul"} Object.keys(arr) ["name", "age", "city"] 3#var arr = [10,20,30] arr.toStrin..
자바스크립트_this 객체란 서로 연관된 변수와 함수를 그룹핑한 그릇이라고 할 수 있다. 객체 내의 변수를 프로퍼티(property), 함수를 메소드(method)라고 부른다. 객체를 만들어보자. 1# var person = {}; // var Person = new person(); 와 같은 효과이다. 즉 person이 객체person.name = 'jasonkim';person.introduce= function(){ return this.name; // this 는 객체인 person 이다.} console.log(this.name); person.introduce() //"jasonkim" 2# var person = {}; // var Person = new person(); 와 같은 효과이다. 즉 person이 객..
자바스크립트_Node객체 [JavaScript] Node 객체Node 객체1. 소개Node 객체는 DOM에서 시조와 같은 역할을 한다. 다시 말해서 모든 DOM 객체는 Node 객체를 상속 받는다. Node 객체의 위상을 그림으로 나타내면 아래와 같다. 모든 엘리먼트, 텍스트, 주석등 HTML코드의 모든 문서의 구성요소들의 객체는 공통적으로 Node라는 객체를 상속받는다.Node객체는 firstChild, lastChild, nextSibling등의 프로퍼티를 가지고 있어서 이를 이용해서 각각의 Node들을 기준으로해서 자식이 누구인지, 형제가 누구인지 알 수 있다.2. 주요기능Node 객체의 주요한 임무는 아래와 같다.(1) 관계엘리먼트는 서로 부모, 자식, 혹은 형제자매 관계로 연결되어 있다. 각각의 Node가 다른 Node..