Skip to content

Instantly share code, notes, and snippets.

@miya0001
miya0001 / Vagrantfile
Created December 11, 2013 16:12
3.8-RC2-ja用のVagrantfile VCCWの中に放り込んでから使って下さい。 https://github.com/miya0001/vagrant-chef-centos-wordpress
# 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
@kohki-shikata
kohki-shikata / zusaar_count
Last active December 16, 2015 03:19
WordPress Shortcode counts attendance from a Zusaar event
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(); // 現在の日付を確認
@Gab-km
Gab-km / github-flow.ja.md
Last active April 23, 2025 04:19 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@wokamoto
wokamoto / wp-custom-search.php
Last active May 5, 2024 08:06
WordPress でユーザー名とか、タグ名・カテゴリ名も検索対象に
<?php
function custom_search($search, $wp_query) {
global $wpdb;
//サーチページ以外だったら終了
if (!$wp_query->is_search)
return $search;
if (!isset($wp_query->query_vars))
return $search;