This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install python-pip python-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Shawshank Redemption | |
The Godfather | |
The Godfather:Part II | |
Pulp Ficiton | |
The Good, the Bad and the Ugly | |
12 Angry Men | |
Schindler's List | |
The Dark Knight | |
The Lord of the Rings:The Return of the king | |
Fight Club |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
이 소스코드는 node.js 런타임 환경에 맞게 작성되었습니다. | |
node.js 런타임환경에서 실행시켜주세요 | |
Data structure : List | |
*/ | |
//node.js에서 파일을 읽기위한 모듈 참조 | |
fs = require('fs'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Stack 클래스 | |
//Stack 생성자 정의 | |
function Stack() { | |
//스택의 요소가 저장되는 배열 | |
this.dataStore = []; | |
//스택의 위치 | |
this.top = -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Stack 클래스 | |
//Stack 생성자 정의 | |
function Stack() { | |
//스택의 요소가 저장되는 배열 | |
this.dataStore = []; | |
//스택의 위치 | |
this.top = -1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Node(data, left, right) { | |
this.data = data; | |
this.left = left; | |
this.right = right; | |
this.show = show; | |
} | |
function show() { | |
return this.data; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Node(data, left, right) { | |
this.data = data; | |
this.left = left; | |
this.right = right; | |
this.show = show; | |
} | |
function show() { | |
return this.data; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
enum Day { Sun, Mon, Tue, Wed, Thu, Fri, Sat }; | |
static void Main() | |
{ | |
//정수형으로 형변환 | |
int x = (int)Day.Sun; | |
int y = (int)Day.Fri; | |
Console.WriteLine("Sun = {0}", x); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Queue의 생성자 정의 | |
function Queue(){ | |
this.dataStore = []; | |
this.enqueue = enqueue; | |
this.dequeue = dequeue; | |
this.front = front; | |
this.back = back; | |
this.toString = toString; | |
this.empty = empty; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import re | |
from bs4 import BeautifulSoup | |
from pymongo import MongoClient | |
def getNumbers(value): | |
result = re.sub('\s+', '', value) | |
result = result.replace('kg', "").replace(',', "").replace('원', "") | |
return result |