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
| (*CacheID: 234*) | |
| (* Internal cache information: | |
| NotebookFileLineBreakTest | |
| NotebookFileLineBreakTest | |
| NotebookDataPosition[ 0, 0] | |
| NotebookDataLength[ 63161, 1511] | |
| NotebookOptionsPosition[ 57778, 1418] | |
| NotebookOutlinePosition[ 58164, 1435] | |
| CellTagsIndexPosition[ 58121, 1432] | |
| WindowFrame->Normal*) |
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/env python2 | |
| # -*- coding: utf-8 -*- | |
| import argparse | |
| import csv | |
| import json | |
| import os | |
| import sys | |
| import dropbox |
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 | |
| header('Content-Type: text/plain'); | |
| function rrmdir($dir) | |
| { | |
| if (is_dir($dir)) { | |
| $objects = scandir($dir); | |
| foreach ($objects as $object) { | |
| if ($object != "." && $object != "..") { |
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 | |
| header('Content-Type: text/plain'); | |
| /** | |
| * Changes permissions on files and directories within $dir and dives recursively | |
| * into found subdirectories. | |
| */ | |
| function chmod_r($dir, $dirPermissions, $filePermissions) { | |
| $dp = opendir($dir); |
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-master | |
| Description: hookdump example by master. Use it under WP4.7+ | |
| Author: changwoo | |
| */ | |
| if( !function_exists( 'dump_all_hooks' ) ) { | |
| function dump_all_hooks() { | |
| global $wp_filter; |
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: WPHook47 | |
| * Description: WP_Hook 을 사용한 4.7 버전과 그 이전의 버전은 이 코드를 실행하면 결과가 다릅니다. | |
| */ | |
| add_action( 'wp_footer', function() { | |
| error_log( '---------------' ); | |
| add_action( 'wph47_test01', 'wph47_test01', 10); |
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 | |
| PWD=`pwd` | |
| PROJ=`basename $PWD` | |
| VENV_DIR="/home/changwoo/.virtualenvs/$PROJ" | |
| if [[ -d $VENV_DIR ]]; then | |
| echo $PWD > "$VENV_DIR/.project" | |
| echo ".project added to $VENV_DIR" | |
| fi |
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
| Version: 20161202 | |
| 75800000,imbc,mfm,00:00,푸른밤 종현입니다,bluenight,FM4U000001140 | |
| 75800200,imbc,mfm,02:00,미쓰라의 야간개장,openingnight,FM4U000001281 | |
| 75800300,imbc,mfm,03:00,이주연의 영화음악,music_street_11,FM4U000001180 | |
| 75800400,imbc,mfm,04:00,비포 선라이즈 허일후입니다,beforesunrise2,FM4U000001276 | |
| 75800500,imbc,mfm,05:00,세상을 여는 아침 이재은입니다,worldmorning,FM4U000001000 | |
| 75800700,imbc,mfm,07:00,굿모닝 FM 노홍철입니다,morningfm,RAMFM240 | |
| 75800900,imbc,mfm,09:00,오늘 아침 정지영입니다,todaym,FM4U000001070 | |
| 75801100,imbc,mfm,11:00,이루마의 골든디스크,goldendisc,RAMFM260 | |
| 75801200,imbc,mfm,12:00,정오의 희망곡 김신영입니다,musicparty,FM4U000001226 |
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
| # -*- coding: utf-8 -*- | |
| def separate(ch): | |
| unicode_index = ord(ch) - 0xac00 | |
| final = unicode_index % 28 | |
| temp = (unicode_index - final) // 28 | |
| initial, medial = temp // 21, temp % 21 | |
| return initial, medial, final |
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 | |
| ~/bin/touchpad detect-mouse | |
| detected=$? | |
| if [[ $detected -eq 0 ]]; then | |
| ~/bin/touchpad off | |
| else | |
| ~/bin/touchpad on | |
| fi |