Skip to content

Instantly share code, notes, and snippets.

View koorukuroo's full-sized avatar
🎯
Focusing

Kyunghoon Kim koorukuroo

🎯
Focusing
View GitHub Profile
@koorukuroo
koorukuroo / morpheme.py
Created June 17, 2014 17:31
2014 부산과고 R&E 수학분야 연구용 코드
# -*- coding: utf-8 -*-
"""
Created on Wed Jun 18 01:37:57 2014
@author: Kyunghoon Kim
"""
import urllib2
import json
from collections import OrderedDict
s = "나는 밥을 먹었습니다" # input sentence
@koorukuroo
koorukuroo / SVD_test.py
Last active November 4, 2016 01:03
Singular Value Decomposition Test
# -*- coding: utf-8 -*-
"""
Created on Mon Jul 14 14:45:55 2014
@author: Kyunghoon
"""
import numpy as np
# Original Data Matrix
Original = np.matrix([[1,1,0,1],[7,0,0,7],[1,1,0,1],[2,5,3,6]])
@koorukuroo
koorukuroo / highschool.py
Created July 17, 2014 15:17
2014 부산과고 R&E 수학분야 연구용 코드
# -*- coding: utf8 -*-
import Umorpheme.morpheme as um
from collections import OrderedDict
s = "나는 멸치 볶음 보리 밥을 롯데리아에서 한예슬과 함께 먹었습니다. 롯데리아에는 맥도날드 해피밀이 없습니다." # input sentence
data = um.analyzer(s, '23485900349', "[롯데리아,맥도날드]", 1)
temp = {}
for key, value in data.items():
temp[int(key)] = value
data = OrderedDict(sorted(temp.items()))
--- networkx-1.5/networkx/drawing/nx_pylab.py 2011-06-04 09:45:38.000000000 +0900
+++ nx_pylab.py 2011-10-01 01:48:06.000000000 +0900
@@ -21,7 +21,8 @@
# All rights reserved.
# BSD license.
-__all__ = ['draw',
+__all__ = ['set_fontproperties',
+ 'draw',
'draw_networkx',
"""
**********
Matplotlib
**********
Draw networks with matplotlib.
See Also
--------
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';
#!/usr/bin/env python2
# coding: utf-8
from __future__ import print_function
import sys
import re
import json
import urllib
from colorama import init, Fore, Back, Style
URL = 'http://csearch.naver.com/dcontent/spellchecker.nhn'
#!/usr/bin/env python2
# coding: utf-8
from __future__ import print_function
import os
import sys
from wand.image import Image
DIMENSIONS = {
'OSX': [
('icon_16x16.png', 16),
# coding: utf-8
import re
import urllib
from bs4 import BeautifulSoup
class MelonSong(object):
ARTIST_REGEXP = re.compile(r'.*goArtistDetail.*')
ALBUM_REGEXP = re.compile(r'.*goAlbumDetail.*')
SONG_REGEXP = re.compile(r'.*playSong.*')
NUMBER_PARAM_REGEXP = re.compile(r'[\'\",(\s](\d+)[\'\",)]')
@koorukuroo
koorukuroo / gist:e2a0ed5a707eefd433e0
Created February 9, 2015 02:38
hero-comic-network.csv
This file has been truncated, but you can view the full file.
"FROST, CARMILLA","AA2 35"
"KILLRAVEN/JONATHAN R","AA2 35"
"M'SHULLA","AA2 35"
"24-HOUR MAN/EMMANUEL","AA2 35"
"OLD SKULL","AA2 35"
"G'RATH","AA2 35"
"3-D MAN/CHARLES CHAN","M/PRM 35"
"3-D MAN/CHARLES CHAN","M/PRM 36"
"3-D MAN/CHARLES CHAN","M/PRM 37"
"HUMAN ROBOT","WI? 9"