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 bash | |
# Check that terminfo exists before changing TERM var to xterm-256color | |
# Prevents prompt flashing in Mac OS X 10.6 Terminal.app | |
if [ -e /usr/share/terminfo/x/xterm-256color ]; then | |
export TERM='xterm-256color' | |
fi | |
# Turn off standout; turn off underline | |
tput sgr 0 0 |
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
rem-calc(20) |
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
@include font-size(1.0); |
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
<!-- まずは、設定ファイルがあるディレクトリまで移動します。--> | |
cd /System/Library/CoreServices/SystemUIServer.app/Contents/Resources/Japanese.lproj | |
<!-- バイナリ形式のプロパティファイルをXML形式に変換します。 --> | |
sudo plutil -convert xml1 ScreenCapture.strings |
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
sudo su plutil -convert xml1 ScreenCapture.strings |
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
@include grid-column(12); | |
@media #{$medium-up} { | |
@include grid-column(6); | |
} | |
@media #{$large-up} { | |
@include grid-column(4); | |
} |
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
======== | |
パッチの作り方 | |
======== | |
$ mkdir wordpress | |
$ cd wordpress # ここがドキュメントルート | |
$ svn co http://develop.svn.wordpress.org/trunk/ . | |
$ svn update # 作業を行う直前に毎回実行! | |
ここで修正作業や動作確認など。 |
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 | |
$terms = wp_get_object_terms($post->ID, 'coffee'); | |
$slug = $slug=$terms[0]->slug; | |
?> | |
<?php $termloop = array( | |
'post_type' => 'post', // 「投稿」ポストタイプを選択 | |
'posts_per_page' => 4, // 4件表示 | |
'post__not_in'=> array($id), // 自記事をループから除外 | |
'tax_query' => array( | |
array( |
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
//カスタムタクソノミー イベントジャンル の追加 | |
add_action( 'init', 'cptui_register_my_taxes_coffee' ); | |
function cptui_register_my_taxes_coffee() { | |
$labels = array( | |
"name" => __( 'イベントジャンル', '' ), | |
"singular_name" => __( 'イベントジャンル', '' ), | |
); | |
$args = array( |
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
//カスタムタクソノミー コーヒー の追加 | |
add_action( 'init', 'register_my_taxes_coffee' ); | |
function register_my_taxes_coffee() { | |
$labels = array( | |
"name" => __( 'コーヒー', '' ), | |
"singular_name" => __( 'コーヒー', '' ), | |
); | |
$args = array( |
OlderNewer