This file contains hidden or 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
| #!/bin/bash | |
| ## Automatic predix-seed generation script | |
| ## 2016-07-15 Changwoo Nam ([email protected]) | |
| ## predix-seed: https://github.com/PredixDev/predix-seed | |
| ## EDIT THESE VARIABLES | |
| predix_seed_name="pangyo_predix_seed" | |
| uaa_service_name="pangyo_uaa_instance" |
This file contains hidden or 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: Read Only Custom Post | |
| * Description: Sample code of read-only custom post | |
| * Author: changwoo | |
| * Author URI: mailto://[email protected] | |
| */ | |
| add_action( 'init', 'rocp_register_post_type' ); | |
| function rocp_register_post_type() { |
This file contains hidden or 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
| !#/bin/bash | |
| pgrep mplayer | xargs kill |
This file contains hidden or 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'] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |