- 「Browser Support」を追加しました。
こもりが使っているモノやそうでないものも含め、なんとなくWebデザイナーやWebデベロッパーな人たちに便利そうなのを集めてみました。
| <?php | |
| /* | |
| Plugin Name: Facebook Linter | |
| Author: Takayuki Miyauchi | |
| Description: update cache on facebook of your post | |
| */ | |
| new FBLinter(); | |
| class FBLinter { |
| <?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/ | |
| */ |
| /*! | |
| * CSS Reset 2011-12-25 | |
| * https://gist.github.com/gists/1360380 | |
| * | |
| * Author: Takeru Suzuki, http://terkel.jp/ | |
| * License: Public domain | |
| * | |
| * Inspired by Normalize.css: http://necolas.github.com/normalize.css/ | |
| */ |
| <?php | |
| /* | |
| Plugin Name: R Debug | |
| Description: Set of dump helpers for debug. | |
| Author: Andrey "Rarst" Savchenko | |
| Author URI: https://www.rarst.net/ | |
| License: MIT | |
| */ |
| <?php | |
| /* | |
| Usage: | |
| $frag = new CWS_Fragment_Cache( 'unique-key', 3600 ); // Second param is TTL | |
| if ( !$frag->output() ) { // NOTE, testing for a return of false | |
| functions_that_do_stuff_live(); | |
| these_should_echo(); | |
| // IMPORTANT | |
| $frag->store(); | |
| // YOU CANNOT FORGET THIS. If you do, the site will break. |
| <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_template_directory_uri(); ?>/style.css?ver=<?php echo filemtime(get_template_directory().'/style.css'); ?>" /> | |
| <?php if (is_child_theme()): ?> | |
| <link rel="stylesheet" type="text/css" media="all" href="<?php echo get_stylesheet_directory_uri(); ?>/style.css?ver=<?php echo filemtime(get_stylesheet_directory().'/style.css') ?>" /> | |
| <?php endif; ?> |
| #!/usr/bin/php | |
| <?php | |
| switch($argc) { | |
| case 1: | |
| case 2: | |
| echo "please input new site url and wp directory name!\n"; | |
| exit(); | |
| default: | |
| $old_site = isset($argv[3]) ? $argv[3] : ''; | |
| $path = $argv[2]; |
| { | |
| "files": | |
| { | |
| "Chart.js": "https://github.com/nnnick/Chart.js", | |
| "Modernizr.js": "http://modernizr.com/downloads/modernizr-latest.js", | |
| "Normalize.css 1.x": "https://github.com/necolas/normalize.css/blob/v1.1.3/normalize.css", | |
| "Normalize.css 2.x": "https://github.com/necolas/normalize.css/blob/v2.1.3/normalize.css", | |
| "Normalize.css 3.x": "https://raw.githubusercontent.com/necolas/normalize.css/master/normalize.css", | |
| "Respond.js": "https://github.com/scottjehl/Respond/blob/master/dest/respond.min.js", | |
| "Sanitize.css": "https://raw.github.com/ZDroid/sanitize.css/master/sanitize.css", |
| /* | |
| * Takes provided URL passed as argument and make screenshots of this page with several viewport sizes. | |
| * These viewport sizes are arbitrary, taken from iPhone & iPad specs, modify the array as needed | |
| * | |
| * Usage: | |
| * $ casperjs screenshots.js http://example.com | |
| */ | |
| var casper = require("casper").create(); |