- Scott Chacon on the Interwebs(リンク切れ)
- Scott Chacon on the Interwebs
- GitHub Flow - The best way to use Git and GitHub
31 Aug 2011
| <?php | |
| /** | |
| * This script is for easily deploying updates to Github repos to your local server. It will automatically git clone or | |
| * git pull in your repo directory every time an update is pushed to your $BRANCH (configured below). | |
| * | |
| * Read more about how to use this script at http://behindcompanies.com/2014/01/a-simple-script-for-deploying-code-with-githubs-webhooks/ | |
| * | |
| * INSTRUCTIONS: | |
| * 1. Edit the variables below | |
| * 2. Upload this script to your server somewhere it can be publicly accessed |
| # encoding: utf-8 | |
| # vim: ft=ruby expandtab shiftwidth=2 tabstop=2 | |
| VAGRANTFILE_API_VERSION = "2" | |
| # | |
| # Configuration for the WordPress | |
| # | |
| WP_VERSION = '3.8-RC2' # latest or 3.4 or later or http(s):// URL to zipfile |
| function zusaar_count($atts){ | |
| extract(shortcode_atts(array( | |
| 'zid' => null | |
| ), $atts)); | |
| // return $zid; | |
| define("ZUSAAR_API_EVENT_URI", "http://www.zusaar.com/api/event/?event_id="); //イベント自体のデータを取得。開催日時の取得用 | |
| define("ZUSAAR_API_USER_URI", "http://www.zusaar.com/api/event/user/?event_id="); //イベント出席者のデータを取得 | |
| $today = time(); // 現在の日付を確認 |
| <?php | |
| function custom_search($search, $wp_query) { | |
| global $wpdb; | |
| //サーチページ以外だったら終了 | |
| if (!$wp_query->is_search) | |
| return $search; | |
| if (!isset($wp_query->query_vars)) | |
| return $search; |