CSSを「速く」書くためのSublime Text 2のパッケージ「Hayaku!」について。
Package Controlからどうぞ
{ | |
"bold_folder_labels": true, | |
// サイドバーのフォルダ名を太字に | |
"caret_style": "phase", | |
// キャレットのスタイルを変える。他に「smooth」「blick」「solid」「wide」など | |
"disable_formatted_linebreak": true, | |
// Emmetを有効にすると、日本語変換確定後に文字が消えるのを防ぐ | |
"disabled_single_snippet_for_scopes": "", | |
// Emmetを有効にすると、HTMLで「php」の展開が「<?php ?>」にならない問題の回避 | |
"draw_minimap_border": true, |
CSSを「速く」書くためのSublime Text 2のパッケージ「Hayaku!」について。
Package Controlからどうぞ
<?php | |
// PHP Logical operators: The difference between OR vs ||, AND vs && | |
// Key concept #1: "||" and "&&" have greater precedence than "=", "OR", "AND" | |
// http://php.net/manual/en/language.operators.precedence.php | |
// Key concept #2: PHP logical operators are short-circuit | |
// http://en.wikipedia.org/wiki/Short-circuit_evaluation | |
// http://php.net/manual/en/language.operators.logical.php |
<?php | |
/* | |
Plugin Name: Disable plugins when doing local dev | |
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify | |
Version: 0.1 | |
License: GPL version 2 or any later version | |
Author: Mark Jaquith | |
Author URI: http://coveredwebservices.com/ | |
*/ |
{ | |
"color_scheme": "Packages/User/Solarized (light).tmTheme", | |
"font_face": "Source Code Pro", | |
"font_size": 14.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"open_files_in_new_window": false, | |
"theme": "Soda Light.sublime-theme", |
<!-- | |
`-/+osssssssssssso+/-` | |
./oys+:.` `.:+syo/. | |
.+ys:. .:/osyyhhhhyyso/:. ./sy+. | |
/ys: -+ydmmmmmmmmmmmmmmmmmmdy+- :sy/ | |
/h+` -odmmmmmmmmmmmmmmmmmmmmmmmmmmdo- `+h/ | |
:ho` /hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmds/ `oh: | |
`sy. /hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmd+ .ys` | |
.ho `sdddhhhyhmmmdyyhhhdddddhhhyydmmmmy oh. |
<?php | |
add_filter( 'jetpack_enable_opengraph', '__return_false', 11 ); | |
// または | |
add_action( 'plugins_loaded', function(){ | |
remove_action( 'wp_head', 'jetpack_og_tags' ); | |
}); |
Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
======== | |
パッチの作り方 | |
======== | |
$ mkdir wordpress | |
$ cd wordpress # ここがドキュメントルート | |
$ svn co http://develop.svn.wordpress.org/trunk/ . | |
$ svn update # 作業を行う直前に毎回実行! | |
ファイルを追加した場合は `svn add` でそのファイルを追加する。 |