Skip to content

Instantly share code, notes, and snippets.

View momoci99's full-sized avatar
📘

YeongKwonMo momoci99

📘
View GitHub Profile
sudo apt-get install python-pip python-dev
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');
@momoci99
momoci99 / stack.js
Last active February 14, 2017 15:04
자바스크립트 + node.js 와 함께하는 자료구조와 알고리즘 - 스택 stack
//Stack 클래스
//Stack 생성자 정의
function Stack() {
//스택의 요소가 저장되는 배열
this.dataStore = [];
//스택의 위치
this.top = -1;
@momoci99
momoci99 / stack_palindrome.js
Created February 15, 2017 07:47
자바스크립트 + node.js 와 함께하는 자료구조와 알고리즘 - 스택 stack 회문판독기
//Stack 클래스
//Stack 생성자 정의
function Stack() {
//스택의 요소가 저장되는 배열
this.dataStore = [];
//스택의 위치
this.top = -1;
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 / 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);
@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 / 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