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
function sitename_add_option_field() { | |
add_settings_field( | |
'sitename_home_news_posts_count', | |
'ホームページ新着表示数', | |
function () { | |
$setting = get_option( 'sitename_home_news_posts_count' ) ?: 4; | |
echo '<input name="sitename_home_news_posts_count" id="sitename_home_news_posts_count" type="number" min="3" max="8" step="1" value="'. esc_attr( $setting ) . '" class="small-text">'; | |
}, | |
'reading', | |
'default', |
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
console.log('UserJsCSSプラグインのlawyer.jsを読み込みました。'); | |
const userJsCss = {}; | |
userJsCss.vars = { | |
nTabs: 0 | |
}; | |
userJsCss.makeTabs = function (tabs) { | |
let counter = 0; | |
let tabMenuItemHTML = ''; | |
let tabPanelsQuery = []; |
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
{ | |
"name": "research-axe-core", | |
"version": "1.0.0", | |
"description": "", | |
"main": "run-axe.js", | |
"scripts": { | |
"start": "node run-axe.js > report.csv && nkf -s --overwrite report.csv" | |
}, | |
"author": "Hideki Abe", | |
"dependencies": { |
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 | |
$terms = ['rev_type' => 0, 'status' => 4]; | |
$join_stmt = ['name' => 'categories', 'from_obj' => 'entry', 'to_id' => 1]; | |
$args = ['join' => ['relation', ['entry_id', 'from_id'], $join_stmt ] ]; | |
$entries = $db->model('entry')->load( $terms, $args ); |
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 | |
$mt_dir = '/path/to/pcms/'; | |
require_once ( $mt_dir . 'php/mt.php' ); | |
require_once ( $mt_dir . 'addons/DynamicMTML.pack/php/dynamicmtml.php' ); | |
$blog_id = 1; | |
$mt_config = $mt_dir . 'mt-config.cgi'; | |
$app = new DynamicMTML(); | |
$app->configure( $mt_config ); | |
try { |
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
package MT::App::LinkEntry; | |
use strict; | |
use base qw( MT::App ); | |
use MT::Entry; | |
# See Also: http://www.ark-web.jp/sandbox/wiki/306.html | |
@MT::App::LinkEntry = qw( MT::App ); | |
sub init { |
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'; | |
Vue.component('search-form', { | |
props: { | |
query: String, | |
}, | |
template: ` | |
<form class="search" action="#" @submit.prevent="searchPosts"> | |
<input type="search" :value="query"><input type="submit" value="検索"> |
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
#!/bin/sh | |
gem which cocoapods 2> /private/tmp/result_which_cocoapods | |
result=$(</private/tmp/result_which_cocoapods) | |
if echo "$result" | grep -q "Can't"; then | |
echo 'Cocoapods not installed.' | |
echo 'Install Cocoapods.' | |
echo '"Password"の表示が出たら、ログインのパスワードを入力してください。' | |
sudo gem install cocoapods |
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
<!-- 横 --> | |
<img src="/assets/20171119_pic_01.jpg" alt="写真:JIS X 8341-3:2016, WCAG 2.0, ISO/IEC 40500:2012 早見表" srcset="/assets/20171119_pic_01.jpg 720w, /assets/20171119_pic_01_1440w.jpg 1440w" sizes="(min-width: 740px) 720px, 100vw"> | |
<!-- 縦 --> | |
<img src="/assets/20161227_pic_01.jpg" alt="24日1回目のステージの光景" srcset="/assets/20161227_pic_01.jpg 480w, /assets/20161227_pic_01_750w.jpg 750w, /assets/20161227_pic_01_960w.jpg 960w" sizes="(min-width: 500px) 480px, 100vw"> |
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
// | |
// AppDelegate.swift | |
// [AppName] | |
// | |
// Created by [Your Name] on [201x/xx/xx]. | |
// Copyright © 201x年 [Your Name]. All rights reserved. | |
// | |
import UIKit |
NewerOlder