This file contains 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', 'redirect_to_spa' ); | |
function redirect_to_spa() { | |
if ( ! is_user_logged_in() ) { | |
$uri = $_SERVER["REQUEST_URI"]; | |
if ( ! preg_match( '/^\/wp-login.php/', $uri ) && ! preg_match( '/^\/wp-admin/', $uri ) && ! preg_match( '/^\/wp-json/', $uri ) && ! preg_match( '/^\/feed/', $uri ) ) { | |
$url = 'https://wp-kyoto.net' . $uri; | |
wp_redirect( $url, 301 ); | |
exit(); | |
} | |
} |
This file contains 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
React Router Path: /v1/domains/{:domain} | |
API Path: PUT /v1/domains/{domain} | |
Parameters | |
name: domain | |
in: path | |
required: true | |
type: string | |
React Router Path: /v1/domains/{:domain} |
This file contains 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
const Alexa = require('ask-sdk-core'); | |
const { BaseSkillFactory } = Alexa; | |
const assert = require('power-assert') | |
const { handler , HelpIntentHandler } = require('../../index.js') | |
const event = { | |
session: { | |
new: true, | |
sessionId: 'amzn1.echo-api.session.[unique-value-here]', | |
attributes: {}, | |
user: { |
This file contains 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
// 入力と出力でマークアップを変えたりするサンプル | |
import classnames from 'classnames'; | |
const { __, sprintf } = wp.i18n; | |
const { registerBlockType } = wp.blocks; | |
const { Fragment } = wp.element; | |
const { | |
PanelBody, | |
Button | |
} = wp.components; |
This file contains 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
'use strict'; | |
// Alexa-sdkを取得します | |
const Alexa = require('alexa-sdk'); | |
// Alexa SkillのIDを指定します。(省略可) | |
const APP_ID = ''; | |
// リクエスト内容から、nameスロットの値を取り出す処理 | |
const getName = (event) => { | |
if (!event.request.intent) return ''; | |
if (!event.request.intent.slots.name.value) return ''; |
This file contains 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
{ | |
"schedule": [ | |
{ | |
"date": "2047-05-17", | |
"groups": [ | |
{ | |
"time": "8:00 am", | |
"sessions": [ | |
{ | |
"name": "開場", |
This file contains 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 | |
/** | |
* @package c3-cloudfront-clear-cache | |
* @version 0.1 | |
*/ | |
/* | |
Plugin Name: C3 Disabled cron retry | |
Plugin URI: https://gist.github.com/ | |
Description: Disabled to regist retry action to wp-cron. | |
Version: 0.1 |
This file contains 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
<table class="wcpt-schedule" border="0"> | |
<thead> | |
<tr> | |
<th class="wcpt-col-time">時間</th> | |
<th class="wcpt-col-track"> <span class="wcpt-track-name">会議室5a</span> <span class="wcpt-track-description"></span> | |
</th><th class="wcpt-col-track"> <span class="wcpt-track-name">会議室5b</span> <span class="wcpt-track-description"></span> </th> | |
<th class="wcpt-col-track"> <span class="wcpt-track-name">講堂</span> <span class="wcpt-track-description"></span> </th> | |
</tr> | |
</thead> |
This file contains 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 | |
/** | |
* Plugin Name: admin tracker | |
* Plugin URI: https://wp-kyoto.net | |
* Description: tracker | |
* Version: 0.0.1 | |
* Author: Hidetaka Okamoto | |
* Author URI: https://wp-kyoto.net | |
* License: GPLv2+ |
This file contains 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
import React from 'react'; | |
const { __ } = wp.i18n; | |
const { | |
registerBlockType, | |
Editable, | |
MediaUploadButton, | |
source: { | |
attr, | |
children | |
} |