Skip to content

Instantly share code, notes, and snippets.

View momoci99's full-sized avatar
πŸ“˜

YeongKwonMo momoci99

πŸ“˜
View GitHub Profile
@momoci99
momoci99 / main.py
Last active October 26, 2020 12:34
솑이 κ³΅νŒν˜„ν™© 데이터 크둀링 + mongodb insert
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
@momoci99
momoci99 / Enum.cs
Created May 2, 2018 13:43
Enum μ½”λ“œ
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);
function Node(data, left, right) {
this.data = data;
this.left = left;
this.right = right;
this.show = show;
}
function show() {
return this.data;
}
function Node(data, left, right) {
this.data = data;
this.left = left;
this.right = right;
this.show = show;
}
function show() {
return this.data;
}
@momoci99
momoci99 / queue.js
Last active September 3, 2019 23:35
μžλ°”μŠ€ν¬λ¦½νŠΈ + node.js 와 ν•¨κ»˜ν•˜λŠ” μžλ£Œκ΅¬μ‘°μ™€ μ•Œκ³ λ¦¬μ¦˜ - 큐 Queue
//Queue의 μƒμ„±μž μ •μ˜
function Queue(){
this.dataStore = [];
this.enqueue = enqueue;
this.dequeue = dequeue;
this.front = front;
this.back = back;
this.toString = toString;
this.empty = empty;
}
@momoci99
momoci99 / stack_palindrome.js
Created February 15, 2017 07:47
μžλ°”μŠ€ν¬λ¦½νŠΈ + node.js 와 ν•¨κ»˜ν•˜λŠ” μžλ£Œκ΅¬μ‘°μ™€ μ•Œκ³ λ¦¬μ¦˜ - μŠ€νƒ stack νšŒλ¬ΈνŒλ…κΈ°
//Stack 클래슀
//Stack μƒμ„±μž μ •μ˜
function Stack() {
//μŠ€νƒμ˜ μš”μ†Œκ°€ μ €μž₯λ˜λŠ” λ°°μ—΄
this.dataStore = [];
//μŠ€νƒμ˜ μœ„μΉ˜
this.top = -1;
@momoci99
momoci99 / stack.js
Last active February 14, 2017 15:04
μžλ°”μŠ€ν¬λ¦½νŠΈ + node.js 와 ν•¨κ»˜ν•˜λŠ” μžλ£Œκ΅¬μ‘°μ™€ μ•Œκ³ λ¦¬μ¦˜ - μŠ€νƒ stack
//Stack 클래슀
//Stack μƒμ„±μž μ •μ˜
function Stack() {
//μŠ€νƒμ˜ μš”μ†Œκ°€ μ €μž₯λ˜λŠ” λ°°μ—΄
this.dataStore = [];
//μŠ€νƒμ˜ μœ„μΉ˜
this.top = -1;
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
@momoci99
momoci99 / list.js
Last active February 13, 2017 15:10
μžλ°”μŠ€ν¬λ¦½νŠΈ + node.js 와 ν•¨κ»˜ν•˜λŠ” μžλ£Œκ΅¬μ‘°μ™€ μ•Œκ³ λ¦¬μ¦˜ - 리슀트 list
/*
이 μ†ŒμŠ€μ½”λ“œλŠ” node.js λŸ°νƒ€μž„ ν™˜κ²½μ— 맞게 μž‘μ„±λ˜μ—ˆμŠ΅λ‹ˆλ‹€.
node.js λŸ°νƒ€μž„ν™˜κ²½μ—μ„œ μ‹€ν–‰μ‹œμΌœμ£Όμ„Έμš”
Data structure : List
*/
//node.jsμ—μ„œ νŒŒμΌμ„ μ½κΈ°μœ„ν•œ λͺ¨λ“ˆ μ°Έμ‘°
fs = require('fs');
sudo apt-get install python-pip python-dev