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
# -*- coding: utf-8 -*- | |
# copyright: K. H. Nam ([email protected]) / Licensed under GPLv3 or higher version. | |
import wx | |
import os | |
import sys | |
import os.path | |
reload(sys) | |
sys.setdefaultencoding('cp949') |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# 드롭박스 동기화 중 파일 충돌로 인해 중복된 파일이 엄청나게 쌓이는 경우, 쌓이는 파일들을 별도로 추려내는 스크립트 | |
import os | |
import re | |
class ClashItem: | |
def __init__(self, original_file_name, location, clash_file_name, date, dir_path): | |
self.original_file_name = original_file_name |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import httplib2 | |
import json | |
from apiclient.discovery import build | |
from oauth2client import tools | |
from oauth2client.file import Storage | |
from oauth2client.client import flow_from_clientsecrets |
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
#!/usr/bin/python | |
# -*- coding: cp949 -*- | |
""" | |
자모 분리된 문자열로부터 원래의 문자열로 복원하는 파이썬 스크립트. | |
리눅스 <-> OSX의 경우 파일 인코딩이 UTF-8이 유지되기 때문에 단지 NFD, NFC만 바꾸어 주면 되나, | |
윈도우의 경우 CP949로 완전히 인코딩이 변경되어 UTF-8 하의 NFD, NFC 정보가 손실된다. | |
그러므로 이렇게 손실된 정보를 자모의 출현 규칙으로부터 파악해 핸다. | |
""" | |
from unicodedata import normalize | |
import sys |
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
<?php | |
/* | |
Plugin Name: Taxonomy Dropdown | |
Plugin URI: http://blog.changwoo.pe.kr | |
Description: 커스텀 포스트의 카테고리 필터 드롭다운 상자에 대해 | |
Version: 1.0 | |
Author: changwoo | |
Author URI: http://blog.changwoo.pe.kr | |
*/ |
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
<?php | |
/* | |
Plugin Name: hookdump-<author> | |
Description: hookdump example by <author> | |
Author: <your name> | |
*/ | |
/* adds admin menu */ | |
add_action( 'admin_menu', '<author>_add_admin_menu' ); | |
/* our customized action hook */ |
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
<?php | |
/** | |
* Plugin Name: entry-points-<author> | |
*/ | |
// Menu entry points | |
add_action( 'admin_menu', 'i_need_your_callback_selection' ); | |
function <author>_entry_points_add_admin_menu() { |
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
<?php | |
/* | |
Plugin Name: 커스텀 포스트 예제 | |
Author: changwoo | |
Author URI: mailto://[email protected] | |
Description: 커스텀 포스트의 모든 키워드를 살펴 보는 예제입니다. | |
*/ | |
$music_collection_obj = NULL; |
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
<?php | |
/* | |
Plugin Name: Custom Field Search | |
Author: changwoo | |
*/ | |
add_action( 'init', 'my_test_register_post_type' ); | |
function my_test_register_post_type() { |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import urllib2, json, re | |
print json.loads(re.match(r'\((.+)\);', urllib2.urlopen('http://miniplay.imbc.com/WebLiveURL.ashx?channel=mfm&protocol=RTMP').read(), re.M|re.S).group(1))['AACLiveURL'] |
OlderNewer